generator-react-tools
v0.1.0
Published
Yeoman generator for React.js and React Native components
Downloads
1
Maintainers
Readme
generator-react-tools
Yeoman generator for React.js and React Native components.
Usage
Install
npm install -g yo generator-react-tools
yo react-tools --help
Create React.js component
yo react-tools
Create React Native component
yo react-tools:native
Options
--dumb // creates a component with no state
--camel // camelCases the file names
Features
Libraries, etc.
- Tests with Jest and Enzyme
- React.js styling with CSS file
- React Native styling with styled-components/native
- package.json for cleaner import
React Component Structure
└───component-name
├───component-name.css
├───component-name.js
├───component-name.test.js
└───package.json
React Native Component Structure
└───component-name
├───component-name.js
├───component-name.test.js
└───package.json