/react-styled-components-generator

A CLI tool for react the generates react components and styled components for rapid prototyping.

Primary LanguageJavaScript

React Component and Styled Component Generator

React component and styled component generator

How to Use

Install module globally

Styled Component Generator on NPM

npm -i styled-component-generator -g

Naviate to react project root

cst ComponentOneName ComponentTwoName etc...

Generated Structure after running cst will be

src
│
└───components
│   └───ComponentOneName
│       └───index.js
│       └───styled.js
│   └───ComponentTwoName
│       └───index.js
│       └───styled.js
Testing
npm run test
Add-Ons in Future

Add options to select from pre-existing component templates