Skip to main content

useRender

Run callback on every render of the component.

Parameters

  • callback (function): The function to run after the initial render.

Example

import { useRender } from '@atomicjolt/hooks';

function MyComponent() {
useRender(() => {
console.log('Rendered!');
});

return <div>My Component</div>;
}