DEV Community

Discussion on: Unpopular opinion? I don't do puzzle coding tests.

Collapse
 
256hz profile image
Abe Dolinger

Maybe a typo, but you can't use hooks in class components. Or maybe you mean making lifecycle methods with hooks in functional components?

I love your second test, that's great.

Thread Thread
 
kvsm profile image
Kevin Smith 🏴󠁧󠁢󠁳󠁣󠁴󠁿

Indeed, that wasn't clear - what I look for is for candidates to be able to take stateless functional components and implement functionality using hooks. Many immediately convert to class components in order to use lifecycle methods.