Comment by jakubmazanec

Comment by jakubmazanec 2 days ago

3 replies

React Router v4 was released in March 2017 (more than 8 years ago!). v5 was released in May 2019 with no API changes. v6 was released in November 2021 with a new API based on React hooks (this API was much better than the previous). v7 was released in November 2024 with the "Remix" APIs (most importantly the "framework mode"). So, the gaps are 4 years and 3 years - that's doesn't seem that crazy.

philipallstar a day ago

It's a bit crazy. Why ever change it? Imagine if Bash changed every four years, or really anything else that isn't a JS library.

  • jakubmazanec a day ago

    > Why ever change it.

    Because e.g. 1) defining routes using React components isn't good idea, because then you have to first render the app before you know which routes are defined; 2) It's useful to be able to specify what data a route needs. 3) React moved to hooks because they compose better; Etc. The APIs were reworked (but only a few times over many years) so they could be better. Software design is iterative and that's what the major version number in SemVer is for.