Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active December 1, 2018 00:16
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 Jahans3/71069ab43169acdc6cde74c050b0d603 to your computer and use it in GitHub Desktop.
Save Jahans3/71069ab43169acdc6cde74c050b0d603 to your computer and use it in GitHub Desktop.
Use middleware
export default function Root () {
return (
<StateProvider
state={initialState}
reducers={[countReducer]}
middleware={[countMiddleware]}
>
<MyApp />
</StateProvider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment