FormidableLabs / redux-little-router

A tiny router for Redux that lets the URL do the talking.
MIT License
1.04k stars 114 forks source link

react-router example rewrites #78

Open brigand opened 8 years ago

brigand commented 8 years ago

I know it's a lot to ask, but implementing some of the react-router examples would be very helpful for learning this library, and inspire confidence that it can be used in place of react-router in non-trivial situations.

tptee commented 8 years ago

Honestly, that's a huge amount of work for one maintainer to take on during off-hours (not saying this isn't valuable). Contributions welcome 😄

mariusk commented 8 years ago

AFAIK, not even trivial examples are working right now, so getting the docs ready is kind of mission impossible. Specifically, I can't even get nested Fragments and "default routes" working. I'll be glad to contribute some migration docs when I get it working.

tptee commented 8 years ago

I should add that these examples are for the outdated v2 of React Router, and their API is radically different in v4 (and actually resembles our approach in several ways). Therefore, many of these examples won't translate nicely. I want to make clear that this library is not meant to be a drop-in replacement for React Router v2, and doesn't necessarily share its philosophy.

oyeanuj commented 7 years ago

Ah, came in looking for some examples as well.

@tptee I hear your point on not positioning as drop-in replacement for RR. But I think there is some value in showing how to achieve some of the same concepts - maybe the more complex ones, in redux-little-router? With the churn in RR now, I am sure a lot of people would it find it super helpful in understanding the differences with, and potential of how this library can be used.

Thank you for putting out your work! :)