How Can I Pass Parameters On Redirection Using React Router?
I'm using react router version 2.0.1 for navigation between components. I came across a scenario where i want dynamically navigate to other component I did something like this for
Solution 1:
This shuld work for you:
router.push({
pathname: '/some/path',
query: { param1: value1 }
})
or I've seen people doing this and looks like its workin ok:
browserHistory.push("/some/path?param1=value1");
Post a Comment for "How Can I Pass Parameters On Redirection Using React Router?"