[Code Example] Using Render() in ReactJS

Total
0
Shares

Render() in reactjs is used to attach components and JSX to the DOM. This helps in generating the UI for the website.

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

root.render(<HelloMessage name="Taylor" />);

Source: Reactjs Docs

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like