Question from the React ⚛️ test

Write a React component that renders a simple h1 element

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: W3D TeamStatus: Archived(New question!)(Update)Question passed 853 times
0
Community EvaluationsNo one has reviewed this question yet, be the first!