useDidMount

About

componentDidMount hook for React


Examples

import { useDidMount } from "rooks";
export default function App() {
  useDidMount(function() {
    console.log("mounted");
  });
  return null;
}

Arguments

ArgumentTypeDescription
callbackfunctionfunction to be called on mount

Join the community!

Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!

Powered by vercel