Skip to main content

useForceRender

Forces a component to re-render.

Example

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

function MyComponent() {
const forceRender = useForceRender();

return (
<div>
<button onClick={forceRender}>Force Render</button>
</div>
);
}