store-global

1.0.0 • Public • Published

react-global-hook

What is this?

Get a state and actions management for your app

Installation

npm i react-global-hook --save

Then...

....

import useStore from 'gh'

const initialState = { counter: 0 }

const actions = { add: (store, value) => { store.setState({ counter: value }) } }

const useGlobal = globalHook(initialState, actions) ....

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i store-global

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

3.48 kB

Total Files

4

Last publish

Collaborators

  • gabbyllu