UNPKG

dreamstate

Version:

Store management library based on react context and observers

1 lines 227 B
import{createContext as t}from"react";import{CONTEXT_REACT_CONTEXTS_REGISTRY as r}from"../internals.js";function e(e){var n=r.get(e);if(n)return n;var o=t(e.getDefaultContext());return r.set(e,o),o}export{e as getReactContext};