Get access to a global store with just hooks, no Redux or message passing.
npm i @mvps@usestoreimportuseStorefrom'@mvps/usestore'constApp=props=>{// you can set the initial state in the first call:const[count,setCount]=useStore('count',0)return<h1>{count}</h1>}// then, in any other component, just retrieve the value from the store:importuseStorefrom'@mvps/usestore'constCounter=props=>{const[count,setCount]=useStore('count')return<h1>{count}</h1>}Have fun!