Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function MountedButton() { useDidMount(() => { alert("Mounted"); }); return null; }
A React hooks package for componentDidMount