1.0.0 • Published 6 years ago

@salsita/react-core v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

react-core

Install

Install this package with npm

npm i @salsita/react-core

or yarn

yarn add @salsita/react-core

API

Modules

Functions

RootSelectors

RootSelectors.getApi(state) ⇒ ApiState

Returns the state of the API module

Kind: static method of RootSelectors
Returns: ApiState - The state of the API module

ParamTypeDescription
stateStateThe root state of your app

RootSelectors.getCrud(state) ⇒ CrudState

Returns the state of the CRUD module

Kind: static method of RootSelectors
Returns: CrudState - The state of the CRUD module

ParamTypeDescription
stateStateThe root state of your app

RootSelectors.getEntities(state) ⇒ EntitiesState

Returns the state of the entities module

Kind: static method of RootSelectors
Returns: EntitiesState - The state of the entities module

ParamTypeDescription
stateStateThe root state of your app

RootSelectors.getRouter(state) ⇒ RouterState

Returns the state of the router

Kind: static method of RootSelectors
Returns: RouterState - The state of the router

ParamTypeDescription
stateStateThe root state of your app

buildStore(rootReducer, rootSaga, router) ⇒ Store

Builds a store and applies saga and router5 middleware

It applies a saga middleware, a router5 middleware, and runs the root saga.

Kind: global function
Returns: Store - A redux store instance

ParamTypeDescription
rootReducerReducerThe root reducer of your app
rootSagaSagaThe root saga of your app
routerRouterA router5 instance