@piperguy/plop-generator-react-component
TypeScript icon, indicating that this package has built-in type declarations

1.1.1Β β€’Β PublicΒ β€’Β Published

πŸ’§ 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

Package Sidebar

Install

npm i @piperguy/plop-generator-react-component

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

10.4 kB

Total Files

17

Last publish

Collaborators

  • piperguy