A plop
generator for react
context.
This package is hosted on npm
.
npm install --save-dev @bradgarropy/plop-generator-react-context
First, be sure you have plop
installed. Then, add the following line to your plopfile.js
.
plop.load("@bradgarropy/plop-generator-react-context")
Now you'll have access to the context
generator as shown below.
plop context
The 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
🐛 report bugs by filing issues
📢 provide feedback with issues or on twitter
🙋🏼♂️ use my ama or twitter to ask any other questions
Brad Garropy 💻 📖 |