Are React hooks like inheritance?

I recently saw [a comment](https://news.ycombinator.com/item?id=45475923) on Hacker News comparing React hooks with multiple inheritance in C++. I thought this was an interesting analogy and wanted to expand on it a bit.