Akbank interview question

-How to use componentDidMount with useEffect?