import React from "react"; import {createRoot} from "react-dom/client"; // do not modify this function function Navbar() { return ( <> <h3>Supermarket</h3> <p>Start shopping</p> </> ); } const root = document.querySelector("#react-root"); createRoot(root).render(Navbar()); // TODO:
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter