mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-19 05:22:47 +00:00
handling sensors with redux
This commit is contained in:
14
client/js/redux/reducers/reducers.js
Normal file
14
client/js/redux/reducers/reducers.js
Normal file
@@ -0,0 +1,14 @@
|
||||
//just using one reducer - use combineReducers from redux to modularize things
|
||||
import {combineReducers} from 'redux';
|
||||
import {routerReducer} from 'react-router-redux';
|
||||
|
||||
import app from './app';
|
||||
import sensor from './sensor';
|
||||
|
||||
const allReducers = combineReducers({
|
||||
app,
|
||||
sensor,
|
||||
routing: routerReducer
|
||||
});
|
||||
|
||||
export default allReducers;
|
||||
Reference in New Issue
Block a user