5 ms·
As someone just arriving to React - should I just learn React Router v4?
by joshkpeterson 10y ago
As someone just arriving to React - should I just learn React Router v4?
- mosen 10y agoYes.
- bondpbond 10y agoI would focus on learning React(maybe look into create-react-app). Once you're solid on that, then v4 should be stable enough to dive into head first.
- mercurial 10y agoProbably v5 at that point.
- tptacek 10y agoNo. Avoid react-router. If you really need it (you probably won't), you'll know it. Do react-router last. Way last.
- mjackson 10y agoHi, one of the authors of the router here :) Try to insert routing only when you need it. When you're ready for a router, react-router is a great choice. Lots of people are already using it with great success, and you'll find a great community of people willing to help you out.
- brendonjohn 10y agoYes, I like this. It's important to learn what react is and why it's good for handling state in a component before you start trying to build the routing of a full web app.
- danabramov 10y agoI suggest you to learn React itself first. No Redux, no routing, just React itself. Build a few small apps to get a feel for it. When you need routing, I suggest trying to use HTML5 pushState API. Figure out how to use it in React, and try to add routing to one of your apps. After that, I think React Router 4 is going to be a great next thing to try. Get a feel for it and use it if you like it and if it solves your problems. I think RR4 is shaping up to be much better than previous versions. Disclaimer: I work on the React team.