React

Source URL: https://reactjs.org/

Language: javascript

Created on: 2021-09-23 10:56:15

class HelloMessage extends React.Component {
  render() {
    return (
      <div>
        Hello {this.props.name}
      </div>
    );
  }
}

ReactDOM.render(
  <HelloMessage name="Pakistan" />,
  document.getElementById('hello-example')
);
A JavaScript library for building user interfaces
content_copy