How to use the react-hooks-global-state/src/devtools.reduxDevToolsExt function in react-hooks-global-state

To help you get started, we’ve selected a few react-hooks-global-state examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dai-shi / react-hooks-global-state / examples / 08_thunk / src / state.ts View on Github external
};
    default: return state;
  }
};

const reducer = combineReducers({
  count: countReducer,
  person: personReducer,
});

export const { GlobalStateProvider, dispatch, useGlobalState } = createStore(
  reducer,
  initialState,
  compose(
    applyMiddleware(reduxThunk, reduxLogger),
    reduxDevToolsExt(),
  ),
);

react-hooks-global-state

Simple global state for React with Hooks API without Context API

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis