@piperguy/plop-generator-react-context
TypeScript icon, indicating that this package has built-in type declarations

0.1.0Β β€’Β PublicΒ β€’Β Published

πŸ’§ plop generator react context

version downloads size github actions coverage typescript contributing contributors

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 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

❔ Questions

πŸ› report bugs by filing issues
πŸ“’ provide feedback with issues or on twitter

Package Sidebar

Install

npm i @piperguy/plop-generator-react-context

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

12 kB

Total Files

21

Last publish

Collaborators

  • piperguy