joyent-portal/legacy/spikes/architecture/react-d3/client/store.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

18 lines
288 B
JavaScript

const redux = require('redux');
const services = require('./services');
const {
createStore
} = redux;
const reducer = (state, action) => {
return {
...state,
data: services
};
};
module.exports = (state = Object.freeze({})) => {
return createStore(reducer, state);
};