What is the alternative of componentDidMount method.
Sigiloso
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.