0.1.0 ā¢ Published 10 months 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 hook
The 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
10 months ago