by EdwardDiego · 1y ago · 0 comments
Now they're recommending you use frameworks? That are presumably built on top of React?
So what is React exactly these days? Feels like it's a shadow DOM renderer that's become a defacto API?
Like, you could use a component written for one React based framework, in another React based framework, and it'll just work?
Does React still provide routing and/or state management? Or has that been devolved to frameworks?
Wait a minute, has React become the J2EE of front-end?
Hooks came as no surprise to anyone who paid attention, as the recommended way to write components since at least 2016 was in the stateless functional style whenever possible, and many of us used recompose[1] to simulate hooks long before their introduction.
[0] https://github.com/reactiflux/q-and-a/blob/master/jordan-wal...
https://web.archive.org/web/20190105060636/https://reactjs.o...
Although they were mentioning function components at the time in the documentation, I can't say how mainstream that was. Hooks were introduced in Feb. 2019.
No surprise NextJs gets more popular
How many days?
Roughly that many days.
You'll always be using a React routing library, a React data fetching library, a React state management system, and so on.
That's like saying "you will always use js in backend" while ignoring every other backend language.
i certainly don’t use a react data fetching library, i just use fetch. i don’t use special react state management, just use redux. i did build a router that works primarily with React in order to support JSX in the components, but it wouldn't be any harder to adapt it to another framework or setup.
the problem is exactly the same as those memes making fun of people asking on stack overflow "how do i add two numbers with jQuery?" eg 'how do we add two numbers with React'
the problem is there are always new developers making silly mistakes, and making that an indictment of some technology is a fallacy.