Question from the React ⚛️ test

Write a React component that renders a simple h1 element

Easy

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: Damien CavaillèsStatus: Published(Update)Question passed 82 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!