Instantiate a new wrapper by providing arguments as values in an object.
Params
called
Provide a unique id for the wrapper in your app's namespace. Required for namespacing every added reducer/state.
// Example:
import ReduxWrapper from "redux-sands";
const demoWrapper = new ReduxWrapper({ called: "demo" });
component
React-component to connect to. Can be provided during init or via add
.
// Example (Using ES6):
import ReduxWrapper from "redux-sands";
import component from "./component";
const demoWrapper = new ReduxWrapper({ called: "demo", component });