UNPKG

@rbxts/pretty-react-hooks

Version:
8 lines (7 loc) 291 B
/** * Returns a function that can be used to force a component to update. The * function is recreated on the next render if called. This makes it useful as * a dependency for other hooks. * @returns A function that forces a rerender. */ export declare function useUpdate(): () => void;