Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs don't make it clear how to navigate programatically #202

Open
mgenev opened this issue Aug 7, 2017 · 1 comment
Open

docs don't make it clear how to navigate programatically #202

mgenev opened this issue Aug 7, 2017 · 1 comment

Comments

@mgenev
Copy link

mgenev commented Aug 7, 2017

It says to vaguely to pass a ref, but a ref of what? What object has the navigate method...

@jsg2021
Copy link
Contributor

jsg2021 commented Dec 8, 2017

<Locations ref={x => this.router = x}>...</Locations>

else where:

this.router.navigate('/path/to/route', {replace: true}); //the second arg is optional. the replace key will signal the use of replaceState or pushState (default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants