react-cli-2 v1.0.56
React Cli 2 š„š„š„
Easy library without dependencies
Tested in NodeJS v12.13.0
npm i -g react-cli-2
url npm
š¤ Features
Create Component
write the name with kebab-case style
- cmd:
react-cli-2 create component <name>
- cmd (short):
react-cli-2 c c <name>
Example
react-cli-2 create component card
Produce
š card
š Card.jsx // React component
š Card.test.jsx // Initial test React component
š Card.css // Style component
Create Component class based
- cmd:
react-cli-2 create component-class <name>
- cmd (short):
react-cli-2 c cc <name>
Example
react-cli-2 create component-class menu
Produce
š card
š Card.jsx // React component
š Card.test.jsx // Initial test React component
š Card.css // Style component
Create Redux Module
write the name with kebak-case style
write the initial-action with kebak-case style
- cmd:
react-cli-2 create module-redux <name>:<initial-action>
- cmd (short):
react-cli-2 c mr <name>:<initial-action>
Example
- cmd:
react-cli-2 create module-redux user:find-all
Produce
š user
š const.js // define const module
š reducer.findAll.js // reducer with initlaState and 3 case (start/success/error)
š actions.js // Actions Sync and Async
š index.js // import all reducer and export combine reducers
Start Project
Example
- cmd:
react-cli-2 initialize react-redux-reactrouter
- cmd (short):
react-cli-2 i rrr
Produce
š routes.js // conent routes const
š containers // added views here
š components // added components here
š store
š index.js // content store
š modules // added modules redux here
š index.js // rootReducer
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago