0
Class and Function Components, which is better?
The title explains all :)
2 Answers
+ 1
Always use functional component with react hooks for your new projects.
0
See this:
https://medium.com/@Zwenza/functional-vs-class-components-in-react-231e3fbd7108#:~:text=The%20most%20obvious%20one%20difference,which%20returns%20a%20React%20element.