joyent-portal/spikes/architecture/react-d3/client/store.js
Tom Gallacher 9d3903a1db Implement d3 avg rendering in react
This is an initial implement that at the moment constructs the required
SVG layout to be used by D3.
2016-12-02 11:02:58 +00: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);
};