1.1.1 ⢠Published 2 years 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 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
1.1.1
2 years ago