nx 创建react项目
npx creacte-nx-workspace --preset=react
选择你的项目
输入项目名
Workspace name (e.g., org name) myorg 工作区name
What to create in the new workspace react 新的项目模板
Application name todos 项目name
Default stylesheet format CSS css框架
全局安装nx
npm install -g nx
项目启动
全局安装了nx
nx serve todos //nx serve name
npm run start //也可以
服务创建新的程序
npx nx serve todos