1.1.1 ā€¢ Published 10 months ago

@piperguy/plop-generator-react-component v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

šŸ’§ plop generator react component

version downloads size github actions coverage typescript contributing contributors

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