UNPKG

@rtbjs/use-state

Version:

`@rtbjs/use-state` is a state management tool that can act as a local state and be easily turned into a global redux state. It is an innovative approach to state management that combines the advantages of both React's useState and Redux's state management

15 lines 1.15 kB
"use strict"; exports.__esModule = true; exports.AppWithParentReduxHistoryProps = void 0; var tslib_1 = require("tslib"); var jsx_runtime_1 = require("react/jsx-runtime"); var react_redux_1 = require("react-redux"); var app_hoc_1 = tslib_1.__importDefault(require("./app-hoc")); var app_1 = tslib_1.__importDefault(require("./app")); var store_1 = require("./redux/store"); var AppWithParentReduxHistoryProps = function (_a) { var setParentReduxState = _a.setParentReduxState, parentReduxState = _a.parentReduxState, companyId = _a.companyId, apiKey = _a.apiKey, isOpen = _a.isOpen, onClose = _a.onClose; return ((0, jsx_runtime_1.jsx)(react_redux_1.Provider, tslib_1.__assign({ store: store_1.store }, { children: (0, jsx_runtime_1.jsx)(app_hoc_1["default"], tslib_1.__assign({ parentReduxState: parentReduxState, companyId: companyId, apiKey: apiKey, isOpen: isOpen, onClose: onClose }, { children: (0, jsx_runtime_1.jsx)(app_1["default"], { setParentReduxState: setParentReduxState }) })) }))); }; exports.AppWithParentReduxHistoryProps = AppWithParentReduxHistoryProps; //# sourceMappingURL=app-with-parent-redux-history-props.js.map