I have been reading about React hooks but I do not understand the hype around it, nor why and when should use them instead of working with a simple class. The React doc doesn't help answer my question since it only state that
The distinction between function and class components in React and when to use each one leads to disagreements even between experienced React developers.
I also can't find anything about the topic online. Can anyone explain when should we use hooks and when should we use classes?