Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@nrwl/react
Advanced tools
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.
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.
nx generate @nrwl/react:component my-component --project=my-app
Testing Support
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.
nx lint my-app
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. Please use that instead.
@nrwl/react will no longer be published in Nx v18.
Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
FAQs
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 314,320 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.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.