Method to create a Redux store that holds the application state.
Array of middlewares.
Persisted state.
Returns a Redux store, an object that holds the application state.
import * as React from "react";
import * as ReactDOM from "react-dom";
import Authentication from 'redux-authentication'
import { myRootReducer } from '../myApp/Reducers'
import { myRootEpic } from '../myApp/Epics'
const store = Store.configureStore(myRootReducer, myRootEpic, [Authentication]);
ReactDOM.render(
<Root store={store} />,
document.getElementById("root")
);
Generated using TypeDoc
Module for configuring a store.
It is actually a redux based data store, that lets you keep your application data in on place, allows you to access (get and update) the application state or subscribe to its listeners.
Two middlewares are built-in:
import * as React from "react"; import * as ReactDOM from "react-dom"; import Authentication from 'redux-authentication' import { myRootReducer } from '../myApp/Reducers' import { myRootEpic } from '../myApp/Epics' const store = Store.configureStore(myRootReducer, myRootEpic, [Authentication]); ReactDOM.render( <Root store={store} />, document.getElementById("root") );