Created
April 5, 2020 06:23
-
-
Save gagarin55/634188e467727e51fcea185e51d6a940 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
No it's not. | |
In electron you can use a memory history instead of hash, yeah? | |
import { | |
createMemorySource, | |
createHistory, | |
LocationProvider | |
} from "@reach/router" | |
let source = createMemorySource("/starting/url") | |
let history = createHistory(source) | |
let App = () => ( | |
<LocationProvider history={history}> | |
<Router> | |
{/* ... */} | |
</Router> | |
</LocationProvider> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment