Creating an Nx Monorepo with React Apps
Scaffold an Nx workspace, add React apps, and understand the project graph.
Why Nx?
Nx is a smart build system for monorepos. It provides affected-based task running (only build/test what changed), caching (never rerun unchanged tasks), and generators for scaffolding apps and libraries.
Creating a New Nx Workspace
Scaffold a new Nx workspace pre-configured for React.
# Create workspace:
npx create-nx-workspace@latest myorg --preset=react-monorepo
# or for Next.js:
npx create-nx-workspace@latest myorg --preset=nextAll lessons in this course
- Creating an Nx Monorepo with React Apps
- Shared Libraries & Internal Packages
- Nx Affected Commands & Caching
- Code Generators & Workspace Automation