useDidMount
About
componentDidMount hook for React
Examples
import { useDidMount } from "rooks";
export default function App() {
useDidMount(function() {
console.log("mounted");
});
return null;
}
Arguments
Argument | Type | Description |
---|
callback | function | function 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!