Render method in JSX

 The render method must use only one root element.

ex:

class App extends Component { render() { return ( <div> <h1>Welcome to Our Application</h1> <ForEducators /> </div> ); } }

Note how the <ForEducators/> component/tag is used within the root element div 

Comments

Popular posts from this blog

Text->code->flowchart