Skip to content

Instantly share code, notes, and snippets.

@gusttavocaruso
Last active August 29, 2021 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gusttavocaruso/bf5e9bc5fe67b8eba697fcd69e41564d to your computer and use it in GitHub Desktop.
Save gusttavocaruso/bf5e9bc5fe67b8eba697fcd69e41564d to your computer and use it in GitHub Desktop.

How to create => store // rootReducer // reduxExtension

import { createStore, compose } from 'redux';
import { combineReducers } from 'redux';

const extension = window.devToolsExtension() || ((f) => f);

const rootReducer = combineReducers({})
export const store = createStore(rootReducer, compose(extension));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment