@nrwl/react:redux
Create a Redux state slice for a React project.
Usage
nx generate redux ...
nx g slice ... #same
By default, Nx will search for redux
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/react:redux ...
Show what will be generated without writing to disk:
nx g redux ... --dry-run
Options
appProject
The application project to add the slice to.
directory
The name of the folder used to contain/group the generated Redux files.
js
false
Generate JavaScript files rather than TypeScript files.
name
Redux slice name.
project
The name of the project to add the slice to. If it is an application, then the store configuration will be updated too.