cr-react-cli
v1.6.1
Published
Create react files with a single command
Downloads
20
Maintainers
Readme
A command-line interface tool for generating react files.
Visit official documentation website reactcli.org
Motivation
The motivation for creating this project was to reduce the time spent on creating files and boilerplate code and be more productive.
Getting started
1. Install the React CLI
Install React CLI from your command line.
npm install -g cr-react-cli
2. Initialize configuration
To setup React CLI by your preferences, run the init command to generate a config file.
npx react-cli init
After the init command is executed, you will be asked questions about your project. After you answer all questions, in case that you choose the project scope for the config file, the react.config.json file will be generated at the root of your project.
3. Use it
React CLI can be used with several aliases like: cr-react-cli, react-cli, react, rct. Run component, context or hook commands to generate boilerplate files.
npx react component menu
npx react context menu
npx react hook useMenu