@nrwl/react
The React plugin contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:
-
Integration with libraries such as Jest, Cypress, and Storybook.
-
Generators for applications, libraries, components, hooks, and more.
-
Library build support for publishing packages to npm or other registries.
-
Utilities for automatic workspace refactoring.
Here is a list of all the executors and generators available from this package.
Executors
Serve an MFE host or remote application.
Generators
Initialize the
@nrwl/react
plugin.Create a React application.
Create a React library.
Create a React component.
Create a Redux slice for a project.
Set up storybook for a React app or library.
storybook-migrate-defaults-5-to-6
Generate default Storybook configuration files using Storybook version
>=6.x
specs, for projects that already have Storybook instances and configurations of versions<6.x
.Generate storybook story for a React component
Create stories/specs for all components declared in an app or library.
Create a Cypress spec for a UI component that has a story.
Create a hook.
Generate a host react application
Generate a remote react application