0.1.0 ⢠Published 2 years ago
@piperguy/plop-generator-react-hook v0.1.0
š§ plop generator react hook
A plop generator for react hooks.
š¦ Installation
This package is hosted on npm.
npm install --save-dev @piperguy/plop-generator-react-hookš„ Usage
First, be sure you have plop installed. Then, add the following line to your plopfile.js.
plop.load("@piperguy/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
0.1.0
2 years ago