0.1.0 • Published 6 years ago
generator-react-tools v0.1.0
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
0.1.0
6 years ago