Closed dlford closed 1 year ago
https://github.com/developertools-tech/developertools.tech/blob/91dd142dc96ebc996efc77b24af41744d5d5149c/hooks/useLocalState.tsx#L11
The return type should be [T, Dispatch<SetStateAction<T>>] to match the type of the useState setter function.
[T, Dispatch<SetStateAction<T>>]
useState
https://github.com/developertools-tech/developertools.tech/blob/91dd142dc96ebc996efc77b24af41744d5d5149c/hooks/useLocalState.tsx#L11
The return type should be
[T, Dispatch<SetStateAction<T>>]
to match the type of theuseState
setter function.