Pass route params to handlers and demonstrate how they are used
It wasn't straightforward to setup routes with params, therefore I think it would be a good idea to always pass router parameters to as queryParams to the route handlers.
I also added a very basic example to demonstrate how it would work (with API).
Not sure, but it might be related to https://github.com/RickWong/react-isomorphic-starterkit/issues/54 and https://github.com/RickWong/react-isomorphic-starterkit/issues/56
Hi @csk157 thanks for this Pull Request. It looks great, but instead of a random example, we would much rather do stargazers-pagination to demonstrate multiple routes + params. What do you think?
Hi @RickWong, sounds good. I would create a different route (component), which would mimic the behaviour of the Main route, just with manual pagination of the stargazers. So, both routes would essentially accomplish the same thing, but in slightly different ways. What do you think?
Or maybe, you could click on the images in that Main list and open a route where it shows some information about the user (/stargazers/:githubUserName)?
@csk157 I would love to see an example of both: manual pagination and stargazers detail route (/stargazers/:githubUserName).