@piperguy/plop-generator-react-component
v1.1.1
Published
π§ plop generator react component
Downloads
7
Maintainers
Readme
π§ plop generator react component
A plop
generator for react
components.
π¦ Installation
This package is hosted on npm
.
npm install --save-dev @piperguy/plop-generator-react-component
π₯ Usage
First, be sure you have plop
installed. Then, add the following line to your plopfile.js
.
plop.load("@piperguy/plop-generator-react-component")
Now you'll have access to the component
generator as shown below.
plop component
The 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