How to use the storeon/react function in storeon

To help you get started, we’ve selected a few storeon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dai-shi / will-this-react-global-state-work-in-concurrent-mode / src / storeon / index.js View on Github external
const Counter = React.memo(() => {
  const { count } = useStoreon('count');
  syncBlock();
  return <div>{count}</div>;
}, shallowEqual);

storeon

Tiny (180 bytes) event-based Redux-like state manager for React and Preact

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis