use-simple-state
use-simple-state copied to clipboard
V2 - React.useContextSelector and TypeScript
With the upcoming release of React.useContextSelector
we can remove SimpleStateConsumer
and move to a full hooks-based solution without impacting performance, as was originally intended.
This is also a good chance to rewrite the library in TypeScript.