• tool for updating state by props dispatches value on change condition can be used for avoiding rerenders

    Type Parameters

    • T

    Parameters

    • Optional value: T
    • Optional dispatch: ((c: T) => void)
        • (c: T): void
        • Parameters

          • c: T

          Returns void

    • condition: boolean = true

    Returns void

Generated using TypeDoc