React 19 · Setup

Render the app

Mount the root component into the page.

import { createRoot } from "react-dom/client";

createRoot(document.getElementById("root")!).render(<App />);

Official React 19 documentation

More setup commands

All setup commands · React 19 cheatsheet

Was this page helpful?