News for hackers. Stuff that matters.
Re:React is a fractal of bad design by rhaway84773 on Thursday March 09, 2023 @08:29PM (#35089328)
The claim that if you used React for the past 6 years meant you used a single library is almost certainly false.

Because what React is as a library today, with functional components+hooks is completely different from what React was when it first came out, with class components.

React is quite clearly a name that incorporates at least 2 distinct libraries which are supposed to be fully compatible but they’re not…try using a ref for a functional component.

The existence of these 2 libraries under the same name means thst documentation is also increasingly confusing. It also means that both libraries are probably making compromises So they’re still compatible with each other on the surface.

There are no comments on this comment yet.