
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
generate-react-cli
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
To help speed up productivity in React projects and stop copying, pasting, and renaming files each time you want to create a new component.
Few notes:
npm i -g generate-react-cli
When you run generate-react-cli within your project the first time, it will ask you a series of questions to customize the cli for your project needs (this will create a "generate-react-cli.json" config file).
{
"component": {
"path": "src/components",
"css": {
"preprocessor": "scss",
"module": true
},
"withTest": true,
"withStory": true,
"withLazy": true
}
}
generate-react component <ComponentName>
This command will create a folder with your component name within your default (e.g. src/components) directory, and its corresponding files.
Parameter | Description | Default Value |
---|---|---|
-p or --path | Value of the path where you want the component to be generated in (e.g. src/pages). | src/components |
-t or --withTest | Create a corresponding test file with this component? | Boolean value selected in "generate-react-cli.json" config file |
-s or --withStory | Create a corresponding story file with this component? | Boolean value selected in "generate-react-cli.json" config file |
-l or --withLazy | Create a corresponding lazy file (a file that lazy-loads your component out of the box and enables code splitting) with this component? | Boolean value selected in "generate-react-cli.json" config file |
1.5.3 (2019-08-13)
FAQs
A simple React CLI to generate components instantly and more.
The npm package generate-react-cli receives a total of 5,481 weekly downloads. As such, generate-react-cli popularity was classified as popular.
We found that generate-react-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.