5 lines
130 B
TypeScript
5 lines
130 B
TypeScript
export default function useRefs<T>(): [
|
|
getRef: (index: number) => T,
|
|
setRef: (index: number) => (instance: T) => void
|
|
];
|