1.1.1 • Published 3 years ago
@bradgarropy/plop-generator-react-hook v1.1.1
💧 plop generator react hook
A plop generator for react hooks.
📦 Installation
This package is hosted on npm.
npm install --save-dev @bradgarropy/plop-generator-react-hook🥑 Usage
First, be sure you have plop installed. Then, add the following line to your plopfile.js.
plop.load("@bradgarropy/plop-generator-react-hook")Now you'll have access to the hook generator as shown below.
plop hookThe hook generator scaffolds a hook, including tests, and adds it to the index.ts file for easy importing. The resulting directory looks like this for a hook named useHook.
src
└── hooks
├── index.ts
└── useHook
├── index.ts
├── useHook.tsx
└── useHook.test.tsx❔ Questions
🐛 report bugs by filing issues
📢 provide feedback with issues or on twitter
🙋🏼♂️ use my ama or twitter to ask any other questions