Shopmonkey Interview Question

Explain how to implement componentDidMount() using React hooks in a functional component.