> But even then, I notice React (& friends) have all moved away from this approach. Modern web development usually makes components be functions.
But what do those functions return? Oh look, it's DOM nodes, which are described by and implemented with inheritance.
I would agree that view hierarchies in UI libraries are one of the primary use-cases for inheritance. But it's a pretty big one.