Question from the React ⚛️ test

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'));
Author: Clément DevosStatus: Archived(New question!)Question passed 57 times
-1
Community EvaluationsNo one has reviewed this question yet, be the first!