@bradgarropy/plop-generator-react-component
v1.1.1
Published
π§ plop generator react component
Downloads
154
Maintainers
Readme
π§ plop generator react component
A plop generator for react components.
π¦ Installation
This package is hosted on npm.
npm install --save-dev @bradgarropy/plop-generator-react-componentπ₯ Usage
First, be sure you have plop installed. Then, add the following line to your plopfile.js.
plop.load("@bradgarropy/plop-generator-react-component")Now you'll have access to the component generator as shown below.
plop componentThe component generator scaffolds a component, including tests and an associated css module. The resulting directory looks like this for a component named Component.
src
βββ components
βββ Component
βββ index.ts
βββ Component.tsx
βββ Component.test.tsx
βββ Component.module.cssβ Questions
π report bugs by filing issues
π’ provide feedback with issues or on twitter
ππΌββοΈ use my ama or twitter to ask any other questions
