Typescript RefObject<T> not supported (React)
arimendelow opened this issue · comments
Ari Mendelow commented
Justin Schroeder commented
I believe this is already implemented:
function useAutoAnimate<T extends Element>(
options?: Partial<AutoAnimateOptions> | AutoAnimationPlugin
): [RefCallback<T>, (enabled: boolean) => void]