I'm using react and react-router for my application on the client side. I can't seem to figure out how to get the following query parameters from a url like:
http://xmen.database/search#/?status=APPROVED&page=1&limit=20 My routes look like this (the path is totally wrong I know):
var routes = ( <Route> <DefaultRoute handler={SearchDisplay}/> <Route name="search" path="?status=:status&page=:page&limit=:limit" handler={SearchDisplay}/> <Route name="xmen" path="candidate/:accountId" handler={XmenDisplay}/> </Route> ); My route is working fine but I'm just not sure how to format the path to get the parameters I want. Appreciate any help on this!
getCurrentQuerywillTransitionTohooks on your handler. It receives query string parameters. github.com/rackt/react-router/commit/…