@nrwl/react:application
Create a React application for Nx.
Usage
nx generate application ...
nx g app ... #same
By default, Nx will search for application
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/react:application ...
Show what will be generated without writing to disk:
nx g application ... --dry-run
Examples
Generate apps/myorg/myapp
and apps/myorg/myapp-e2e
:
nx g app myapp --directory=myorg
Use class components instead of functional components:
nx g app myapp --classComponent
Set up React Router:
nx g app myapp --routing