Skip to content

Instantly share code, notes, and snippets.

View rradczewski's full-sized avatar

Raimo Radczewski rradczewski

View GitHub Profile
// snip for production
const store = createStore(thunk.withExtraArgument({fetch}));
// snip effect
import { createAction } from 'redux-actions';
const createEffect = (name, fun) => (...args) => dispatch => {
const action = createAction(name);
dispatch({ type: `${name}_STARTED` });