Created
September 12, 2020 13:06
-
-
Save andregardi/c0d20aa2f4b2715328d0d1ba320a88e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import Immer from "immer"; | |
import globalHook from "use-global-hook"; | |
import * as actions from "../actions"; | |
import { initialState } from "./initialState"; | |
const options = { Immer }; | |
const useGlobal = globalHook(React, initialState, actions, options); | |
export default useGlobal; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment