Sha256: 9cad0bc27c82e3117b9b8420edb80ce9dfa931c4749b8122c32d678e95c13468
Contents?: true
Size: 514 Bytes
Versions: 6
Compression:
Stored size: 514 Bytes
Contents
import React from 'react'; import PropTypes from "prop-types"; const propTypes = { className: PropTypes.string, text: PropTypes.string }; const defaultProps = { text: "I am a react kit" }; class LineGraph extends React.Component { render() { const { className, text } = this.props; return ( <div className={className}> <span>{text}</span> </div> ) } } LineGraph.propTypes = propTypes; LineGraph.defaultProps = defaultProps; export default LineGraph;
Version data entries
6 entries across 6 versions & 1 rubygems