Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function App() {
const globalState = useStoreState()
return (
<div>
<header title="React context Hook">
<section>
<h3>
This is a React App that has a global state. This is the global{' '}
<em>store</em> value.
</h3>
<pre> <code>{JSON.stringify(globalState, null, ' ')}</code>
</pre>
<h4>
You can change the global state from different components, using the</h4></section></header></div>