Skip to content

yang4515/use-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published