Function useRerender

  • Returns a callback that unconditionally re-renders a component.

    Note: Using this hook makes your code imperative, which is generally considered a bad practice.

    Returns (() => void)

      • (): void
      • Returns void