0.0.2 • Published 3 years ago

context-hook-store v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

context-store

Easily include boilerplate code for creating a store file that uses the React Context Hooks.

What's included

Generic file storeGenerator.js

Generic file storeGenerator.js holds the logic of creating a Context provider with its Reducer function. Both of them come as arguments to accomplish the re-usability of store generator.

Indicative file defaultStore.js

File defaultStore can be copied and placed anywhere in project, typically under stores' directory. Here we will write all of our state variables, functions belonging to this store context etc.

Note:

This is not a ready to use package. Useful files are included in our project. Editing them accordingly can help us use the power of React hooks.

0.0.2

3 years ago

0.0.1

3 years ago