showing results for - "class component in reactjs"
Dwight
27 Jan 2019
1class HelloMessage extends React.Component {
2  render() {
3    return (
4      <div>
5        Hello {this.props.name}
6      </div>
7    );
8  }
9}
10
11ReactDOM.render(
12  <HelloMessage name="Taylor" />,
13  document.getElementById('hello-example')
14);