0.1.0 ⢠Published 3 years ago
@piperguy/plop-generator-react-context v0.1.0
š§ plop generator react context
A plop generator for react context.
š¦ Installation
This package is hosted on npm.
npm install --save-dev @piperguy/plop-generator-react-contextš„ Usage
First, be sure you have plop installed. Then, add the following line to your plopfile.js.
plop.load("@piperguy/plop-generator-react-context")Now you'll have access to the context generator as shown below.
plop contextThe context generator scaffolds a new context, including a consumer hook, and adds it to the index.ts file for easy importing. The resulting directory looks like this for a context named App.
src
āāā context
āāā App.tsx
āāā index.tsā Questions
š report bugs by filing issues
š¢ provide feedback with issues or on twitter
0.1.0
3 years ago