download
raw
531 Bytes
export interface UseControlledProps<T = unknown> {
/**
* Holds the component value when it's controlled.
*/
controlled: T | undefined;
/**
* The default value when uncontrolled.
*/
default: T | undefined;
/**
* The component name displayed in warnings.
*/
name: string;
/**
* The name of the state variable displayed in warnings.
*/
state?: string;
}
export default function useControlled<T = unknown>(
props: UseControlledProps<T>,
): [T, (newValue: T | ((prevValue: T) => T)) => void];

Xet Storage Details

Size:
531 Bytes
·
Xet hash:
cb2b1739779a0def44a083e4a81eb39067c2958dfc18dc08f1d37876de214683

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.