|
|
|
|
|
by aocvr
3291 days ago
|
|
Upgrading from 3 to 4 is not required. Version 3 is still maintained. It's not ideal since there will probably be no future major 3 versions, but no one is forced to make a 'big breaking change' strictly speaking. > We intend to keep supporting the 3.x branch indefinitely (published separately on npm to aid in migration), although there will likely not be any future major versions based on that code. 4.0 is the future, but we won't leave you hanging if you want to stick with 2.x/3.x. https://github.com/ReactTraining/react-router/releases/tag/v... Previously discussed here: https://news.ycombinator.com/item?id=12511419 |
|
I don't see the benefit of switching if v3 allowed me to ssr and code split while v4 doesn't allow me to do both.
From the user pov it went from instantly displayed page with minimal js required to choosing one of those options.
What benefits could exist that supercede giving the user the best possible experience? (Genuine question).
I can't imagine huge speed gains going from one page to the next from this change and indeed changing pages in SPAs are essentially instant. So what could possibly be better that makes it worth getting rid of ssr and code splitting? Imo I won't be using react-router in future products because they are too fickle with their codebase.