Coding task · JavaScript and React course · Module 1: React Basics
Practice: Rendering to the DOM
createRoot (from react-dom/client) creates a React root in the chosen page element, and its render() method displays a component in it.
Task
Use ReactDOM.createRoot to render the SpaceStation component into the DOM element with id 'space-station' (just like in main.jsx from the Vite lesson).