JavaScript React Basics First Steps in React Create a React Element

How to run this code

const title = React.createElement( 'h1', { id:'main-title' , title:'This is a title.'}, 'My First React Element' ); console.log(title);

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,333 Points

Open the workspace associated with the video and paste your code into app.js. Then click preview.

Thanks.