@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
12 lines • 841 B
JavaScript
import { __assign } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { Provider } from 'react-redux';
import AppHoc from './app-hoc';
import App from './app';
import { store } from './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 (_jsx(Provider, __assign({ store: store }, { children: _jsx(AppHoc, __assign({ parentReduxState: parentReduxState, companyId: companyId, apiKey: apiKey, isOpen: isOpen, onClose: onClose }, { children: _jsx(App, { setParentReduxState: setParentReduxState }) })) })));
};
export { AppWithParentReduxHistoryProps };
//# sourceMappingURL=app-with-parent-redux-history-props.js.map