DEV Community

Discussion on: React: Class Component VS Function Component with Hooks

Collapse
 
exinferis profile image
Exinferis

Function based components are harder to read in my opinion and large codebases tend to look like spaghetti when using function components. For less complex stuff, they seem to be a good way to go, for more complex things or larger codebases I rather stick to well structured class based components.

Collapse
 
amitvrm036 profile image
Amit Kumar Verma

I was also thinking that but then I read this overreacted.io/how-are-function-co... and it changed my view about functional components , they seems more reliable than class components.

Collapse
 
zhengmao profile image
mao.zheng

agreed