The React plugin for Nx 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, co
@nrwl/react is a plugin for Nx, a set of extensible dev tools for monorepos, which provides support for building React applications. It offers a range of features to streamline the development, testing, and maintenance of React applications within a monorepo setup.
What are @nrwl/react's main functionalities?
Generate React Applications
This command generates a new React application within the Nx workspace. It sets up the necessary configuration and boilerplate code to get started quickly.
nx generate @nrwl/react:application my-app
Generate React Libraries
This command generates a new React library within the Nx workspace. Libraries can be shared across multiple applications, promoting code reuse and modularity.
nx generate @nrwl/react:library my-lib
Component Generation
This command generates a new React component within a specified project. It helps in maintaining a consistent structure and reduces the boilerplate code needed for new components.
This command runs the tests for a specified React application or library. Nx integrates with popular testing frameworks like Jest, making it easy to write and run tests.
nx test my-app
Linting
This command runs linting checks on a specified React application or library. Nx integrates with ESLint to ensure code quality and consistency across the workspace.
Create React App is a popular tool for setting up a new React project with a single command. It provides a lot of the same boilerplate setup as @nrwl/react but is more focused on single-project setups rather than monorepos.
Lerna is a tool for managing JavaScript projects with multiple packages. While it doesn't provide specific support for React, it helps in managing monorepos, similar to Nx, but without the additional React-specific tooling provided by @nrwl/react.
React Scripts is a set of scripts and configuration used by Create React App. It abstracts the configuration for building, testing, and linting React applications, similar to how @nrwl/react provides these capabilities within an Nx workspace.
@nrwl/react has been renamed to @nx/react!
@nrwl/react has been renamed to @nx/react. Please use that instead.
@nrwl/react will no longer be published in the future.
Nx: Smart Monorepos · Fast CI
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
The React plugin for Nx 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, co
The npm package @nrwl/react receives a total of 264,334 weekly downloads. As such, @nrwl/react popularity was classified as popular.
We found that @nrwl/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 7 open source maintainers collaborating on the project.
Package last updated on 17 Sep 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.