Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.71 KB

REDUCERS.md

File metadata and controls

45 lines (35 loc) · 1.71 KB

<- to the main page

Adding reducers

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'

See more: