Skip to content

useRerender

Hook that defines the logic to force rerender a component

debug
medium
test coverage
Last changed: 7 months ago

Installation

Library
CLI
Manual
typescript
import { useRerender } from '@siberiacancode/reactuse';

Usage

typescript
const rerender = useRerender();

Demo

Api

Returns

UseRerenderReturn

Type declaration

typescript
type UseRerenderReturn = () => void;

Source

SourceDemo

Contributors

D
debabin
debabin
H
hywax
hywax

Released under the MIT License.