A conditional rendering component with asynchronous support.

  • Type Parameters

    • T extends unknown = object

      The type of payload passed to the condition.

    Parameters

    • props: IIfProps<T>

      The props object.

    Returns Element

    • The rendered content based on the condition and loading state.