Know whether the component has mounted in the browser.
This is custom React hooks, you need to follow the Basic Rules when you use it.
It is false on the server and on the first render.
const useMounted = () => boolean