Created
May 28, 2023 18:16
-
-
Save khg0712/59d65c0a4f7a2f486daae01302f2d9a6 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
// packages/next/client/router.ts | |
// useRouter 코드 | |
// https://github.com/vercel/next.js/blob/v12.3.4/packages/next/client/router.ts#L132 | |
export function useRouter(): NextRouter { | |
return React.useContext(RouterContext) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment