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 Evaluations
developer avatar
Auteur anonyme
04/07/2022
'Hello World!' & 'Hello, world!', I thought this was a trap, better make sure to write the same thing on both of them...
developer avatar
Auteur anonyme
05/09/2022
Merci, la correction a été acceptée !