ktongue's picture
download
raw
562 Bytes
import * as React from 'react';
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, React.Dispatch<React.SetStateAction<T | undefined>>];

Xet Storage Details

Size:
562 Bytes
·
Xet hash:
54453a5f40e95bf43abc1667ae1b64f9675e96c569a848f6de9e8695a632e009

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