A command-line interface tool for generating react files.
Visit official documentation website reactcli.org
The motivation for creating this project was to reduce the time spent on creating files and boilerplate code and be more productive.
Install React CLI from your command line.
npm install -g cr-react-cli
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.
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