Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This sounds really good.

Quick question, does it include an option for client side routing?

I really want to start using React, but every time I get overwhelmed by the sheer amount of options (paralysis analysis) and go back to AngularJS (which is starting to show it's age). Personally I'm not sold on Angular2/4.

Cheers



They don't load a routing solution with this, but the most used router (and my favorite) is React-Router [0]. To get basic routing setup takes less than an hour, and has great docs.

[0]: https://reacttraining.com/react-router


If you're using redux I would recommend you stay far away from react-router. Using redux-little-router has been a pleasure to use in comparison: https://github.com/FormidableLabs/redux-little-router


(Disclaimer: I work at Formidable)

Can confirm, I absolutely love `redux-little-router`. It feels so natural to dispatch Redux actions to change routes rather than dealing with the song and dance of conditionally rendering <Redirect /> components or trying to figure out when in the lifecycle to call `router.push(url)`.

I especially like pairing it with `redux-saga`- with a little bit of effort, you can end up writing mini-applications for each route which start and stop as the user navigates.


Any example repos of this? This sounds fantastic.


Damn, this does look great. A lot of what it does can be solved by using `withRouter` from react-router, but I really like how they use `<Fragment />`


Do I need to eject my create-react-app to use Redux and Redux-Little-Router?


for v4 I feel like the docs aren't all the way there. especially example wise


I used UI-Router with react - works like a charm.


I've used UI Router extensively with Angular, I really like it.


I like it too, Chris did an awesome job - just recently made a wrapper for Polymer with his help.


If you want to go with MVC use this: https://github.com/Rajeev-K/mvc-router




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: