This lesson walks through the prerequisites and tooling you need before writing React code: Node.js, a package manager, VS Code extensions, and React DevTools for inspecting components in the browser.
Prerequisites
React runs on JavaScript, so you need Node.js (LTS version recommended) and npm or a faster alternative like pnpm or yarn. Node provides the runtime for development tools and the build pipeline that bundles your JSX and modules for the browser.
Use a modern editor with ESLint and Prettier support. Install the React Developer Tools browser extension to inspect the component tree, props, state, and hooks while your app runs locally.
Enable "Format on Save" with Prettier for consistent code style.
Configure ESLint with eslint-plugin-react-hooks to catch hook rule violations.
React DevTools adds Components and Profiler tabs in browser devtools.
Use the official TypeScript extension if you plan to adopt TypeScript early.
Setup Checklist
Everything you need before creating your first Vite React project.
Item
Purpose
Node.js LTS
Run dev servers and build tools
npm / pnpm / yarn
Install dependencies
VS Code + ESLint
Catch errors while coding
Prettier
Consistent formatting
React DevTools
Inspect components in the browser
Git
Version control for your project
Choosing a Node.js Version
Use the current LTS release from nodejs.org or a version manager like nvm, fnm, or volta. Pin the Node version in .nvmrc or engines in package.json so teammates and CI use the same runtime.