Archived
These two codes are equivalent
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('root')
);
ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('root'));
Similar QuestionsMore questions about React