Comment by philipallstar
Comment by 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.
Comment by 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.
> 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.