A CLI tool for generating React components source code.
Install it as a global package:
npm install -g react-code-generator
Run the generator with the following command:
generate-component <componentName> (-p)
This will result in creating a fresh JavaScript file in the current location (where you called the command from). Name of the file will be according to argument.
If you use the '-p' flag, then the generated component will be written as a stateless functional component. Otherwise, a container component will be created as an ES6 module.