News for hackers. Stuff that matters.
Re:Inheritance was invented as a performance hack by josephg on Thursday May 08, 2025 @08:40PM (#43932761)
> But what do those functions return? Oh look, it's DOM nodes, which are described by and implemented with inheritance.

Well of course. React builds on what the browser provides. And the DOM has been defined as a class hierarchy since forever. But react components don’t inherit from one another. If the react devs could reinvent the DOM, I think it would look very different than it looks today.

There are no comments on this comment yet.