react.cli
react.cli is ReactJS command line interface. Using this cli you can generate modules and components very easily. This cli was created for React-Redux-Boilerplate. If your project does not have a similar architecture, you can not use this tool.
- Run
npm install react.cli -g
to install react.cli. - Run
react
to enter react mode. - Run
react$ init
to initialize project. - Run
react$ make module orders
to create module. - Run
react$ make component Button
to create component.
- Add
-s
option for stateless component.react$ make -s component Button
- Run
react$ remove module orders
to remove module. - Run
react$ remove component Button
to remove component. - Run
react$ exit
to exit react mode.