Rendering using ReactDom render method


my code is not working . It's showing your code should start with React DOM render method. and it should be capitalized. but my code syntax and symantic both are correct.

var React = require('react');
var ReactDOM = require('react-dom');

ReactDOM.render(<h1>Hello world</h1>, document.getElementById('app'));

ReactDOM.render(<h1>Render me!</h1>, document.getElementById('app'));


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.