Circle V2 API Docs
    Preparing search index...

    Function useControllableState

    • Supports both controlled and uncontrolled usage. When controlledValue is defined the hook is controlled (internal state is ignored); otherwise it manages its own state seeded from defaultValue. onChange always fires.

      Type Parameters

      • T

      Parameters

      Returns [T, ChangeHandler<T>]