In React, what is the point in using a function component instead of a class component? And why using hooks inside functions would be better than using states objects in classes? I
![reactjs - Is it possible to use React Hooks in class component by using HOC(Higher Order Component)? - Stack Overflow reactjs - Is it possible to use React Hooks in class component by using HOC(Higher Order Component)? - Stack Overflow](https://i.stack.imgur.com/FuuDv.png)
reactjs - Is it possible to use React Hooks in class component by using HOC(Higher Order Component)? - Stack Overflow
GitHub - josdejong/react-hooks-for-classes: An experiment applying the concept of hooks to React class components
![How To Fix “React Hooks Must Be Called In a React Function Component or a Custom React Hook Function” How To Fix “React Hooks Must Be Called In a React Function Component or a Custom React Hook Function”](https://kinsta.com/wp-content/uploads/2023/04/react-hooks-must-be-called-in-a-react-function-component-or-a-custom-react-hook-function.jpg)