3 ms·
> The core thing React Router accomplishes can be done in ~50 lines of code including the switch statement for "routes". This is a pretty common theme for me w
by rmrfrmrf 8y ago
> The core thing React Router accomplishes can be done in ~50 lines of code including the switch statement for "routes".
This is a pretty common theme for me when considering any react-* library, and I think it says a lot about how nicely React lets you abstract away behavior.
As for Redux, I feel like the payoff has been worth it, especially when adding in the benefits of tooling and middleware. When I learned React for the second time, I did it with Redux out of the gate, and while it did take a while to ramp up, the upside was I was able to see immediately where bugs were occurring (React + Redux DevTools) and didn't have to grok the component lifecycle before getting some data on the page.