1.1.1 ā¢ Published 10 months ago
@piperguy/plop-generator-react-component v1.1.1
š§ 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
1.1.1
10 months ago