UNPKG

@raulpesilva/re-state

Version:

easy way to create a shared state to the entire application

16 lines (11 loc) 351 B
"use strict"; exports.__esModule = true; exports.createReState = createReState; var _store = require("./store"); var _useReState = require("./useReState"); function createReState(key, initialValue) { _store.store.setWithoutNotify(key, initialValue); return function useCreatedUseReState() { return (0, _useReState.useReState)(key); }; }