Modern React development environment with TypeScript, Vite, and essential tooling
This development container provides a complete React development environment with:
- ✅ Node.js 20 LTS
- ✅ React with TypeScript support
- ✅ Vite and Create React App
- ✅ ESLint and Prettier
- ✅ Multiple package managers (npm, yarn, pnpm)
- ✅ Hot reload development server
-
Open in VS Code
code . -
Reopen in Container
- Press
F1→Dev Containers: Reopen in Container
- Press
-
Create your first React app
With Vite (Recommended):
npm create vite@latest my-app -- --template react-ts cd my-app npm install npm run devWith Create React App:
npx create-react-app my-app --template typescript cd my-app npm start
- 📦 Node.js 20 - Latest LTS version
- 🔧 npm - Default package manager
- 🧶 yarn - Fast package manager
- ⚡ pnpm - Efficient package manager
- ⚡ Vite - Next-generation frontend tooling
- 🏗️ Create React App - Official React setup
- 📘 TypeScript - Type-safe JavaScript
- ✨ ESLint - JavaScript linter
- 💅 Prettier - Code formatter
dsznajder.es7-react-js-snippets- React snippetsdbaeumer.vscode-eslint- ESLint integrationesbenp.prettier-vscode- Prettier formatterformulahendry.auto-rename-tag- Auto rename tagsbradlc.vscode-tailwindcss- Tailwind CSS supportchristian-kohler.npm-intellisense- NPM IntelliSensestyled-components.vscode-styled-components- Styled components
- base - Node.js 20
- build-tools - Package managers
- dev-tools - React tools, TypeScript
- tools - Additional utilities
- development - Dev environment
- builder - Build stage
- production - Nginx runtime
# Vite + React + TypeScript
npm create vite@latest my-app -- --template react-ts
# Vite + React + JavaScript
npm create vite@latest my-app -- --template react
# Create React App with TypeScript
npx create-react-app my-app --template typescript
# Create React App with JavaScript
npx create-react-app my-app# Install dependencies
npm install
# Start development server (Vite)
npm run dev
# Start development server (CRA)
npm start
# Build for production
npm run build
# Preview production build (Vite)
npm run preview# Using npm
npm install react-router-dom
npm install -D @types/node
# Using yarn
yarn add react-router-dom
yarn add -D @types/node
# Using pnpm
pnpm add react-router-dom
pnpm add -D @types/node# Lint code
npm run lint
# Format code
npx prettier --write .
# Type check
npx tsc --noEmit# Routing
npm install react-router-dom
# State Management
npm install zustand
npm install @reduxjs/toolkit react-redux
npm install jotai
# UI Libraries
npm install @mui/material @emotion/react @emotion/styled
npm install antd
npm install @chakra-ui/react @emotion/react
# Styling
npm install -D tailwindcss postcss autoprefixer
npm install styled-components
npm install @emotion/react @emotion/styled
# Forms
npm install react-hook-form
npm install formik yup
# HTTP Client
npm install axios
npm install @tanstack/react-query
# Testing
npm install -D vitest @testing-library/react @testing-library/jest-domPress F5 to launch Chrome debugger with your React app.
- 3000 - Create React App default
- 5173 - Vite default
Happy Coding! 🎉