Question from the React ⚛️ test

Write a React component that renders a simple h1 element

Medium

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 not yet passed
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!