React 19 cheatsheet

React 19: Setup

3 common React 19 tasks.

Create an app with Vite

Scaffold a React and TypeScript project.

npm create vite@latest my-app -- --template react-ts

Install and start

Install dependencies and start the dev server.

cd my-app && npm install && npm run dev

Render the app

Mount the root component into the page.

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

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

Was this page helpful?