Created
May 10, 2016 21:59
-
-
Save uhtred/d1334b1b7d177d4e122a1287b53e58f3 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
// util/history.js | |
import { Router, useRouterHistory } from 'react-router' | |
import { createHashHistory } from 'history' | |
const appHistory = useRouterHistory(createHashHistory)({ queryKey: false }); | |
export default appHistory; | |
// use.js | |
import History from 'util/history'; | |
History.push('login') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment