I'm converting some existing code to use React Router.
The code currently uses <a href="#" ...>
, which I am changing to <Link to=??>
.
My question is:
What should I use for the "to"
parameter? If I use to="#"
, the application routes to "/", which is not what I want.
It works if I use the current route name, but the whole idea of href="#"
is that the code doesn't have to know how it is accessed.
I am using React Router 2 with history=browserHistory.