@bradgarropy/plop-generator-react-context
v1.1.1
Published
π§ plop generator react context
Downloads
146
Maintainers
Readme
π§ plop generator react context
A plop generator for react context.
π¦ Installation
This package is hosted on npm.
npm install --save-dev @bradgarropy/plop-generator-react-contextπ₯ Usage
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 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
ππΌββοΈ use my ama or twitter to ask any other questions
