Created
March 23, 2020 23:45
-
-
Save radiosilence/1e6c4760f87f99b276b58e71fc86439e to your computer and use it in GitHub Desktop.
This file contains 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 { MobXProviderContext } from "mobx-react" | |
import { useContext } from "react" | |
import { RootStore } from "../models" | |
export const useStores = () => { | |
return useContext(MobXProviderContext) | |
} | |
export const useRootStore = (): RootStore => useStores().rootStore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment