How to use componentWillMount() in React Hooks? : <p>In the official docs of React it mentions -  </p>

<blockquote>
  <p>If you’re familiar with React class lifecycle methods, you can think
  of useEffect Hook as componentDidMount, componentDidUpdate, and
  componentWillUnmount combined.</p>
</blockquote>

<p>My question is - how can we use the <code>componentWillMount()</code> lifecyle method in a hook?</p>
