@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 a 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.
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