Type 'Dispatch<SetStateAction<string>>' is not assignable to type '(value?: string | undefined, event?: ChangeEvent<HTMLTextAreaElement> | undefined, state?: ContextStore | undefined) => void'.
Types of parameters 'value' and 'value' are incompatible.
Type 'string | undefined' is not assignable to type 'SetStateAction<string>'.
Type 'undefined' is not assignable to type 'SetStateAction<string>'.ts(2322)
When provdigin a the
setState
Event handler for theonChange
event, there is a type mismatch:versions: