Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

sasa-djuric/react-cli

Repository files navigation

React Cli Header

code style: prettier License

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

License

MIT