Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useStore

install

yarn add @ovis/use-store

use

  import useStore from '@ovis/use-store'

  const A = () => {
    const [state, set] = useStore('someKey')

    return <div onClick={() => set('Change From A')}>A{state}</div>
  }

  export default () => (
    <>
      <A />
      <A />
      <A />
    </>
  )

About

Minimal react state management lib with hook.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages