You can add any custom reducers in order to connect some other stuff to Redux.
Just pass your reducers to addReducers
, they will be added to the store.
// app.jsx
import React from 'react'
import { addReducers, Provider } from 'master-hook'
addReducers({
reducerName: 'insert your reducer here',
})
export const App = () => (
<Provider>
// Your app code is here
</Provider>
)
Make sure to do it BEFORE calling 'Provider'
- Using Storages
- Using Actions
- Using Selectors
- Caching
- Preventing Rerendering
- Preventing Actions
- Autoset 'isPending'
- Typescript
- Adding Reducers [you are here]
- Adding Middleware and DevTools