0.1.0 ā€¢ Published 10 months ago

@piperguy/plop-generator-react-context v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

šŸ’§ 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