Pergunta de entrevista da empresa ILLUMINZ

What is the alternative of componentDidMount method.

Resposta da entrevista

Sigiloso

10 de ago. de 2020

To this question I replied useEffect in functional components and componentDidMount (which is advised by react docs and you'll find the same answer on stack overflow as well) in class component but he never seemed to be agree.