Answers for "Property 'setMessages' does not exist on type 'Dispatch<SetStateAction<Message[]>>'."

0

Property 'setMessages' does not exist on type 'Dispatch<SetStateAction<Message

you should use const [ , setData ]  of const { data, setData }
Posted by: Guest on January-01-1970

Code answers related to "Property 'setMessages' does not exist on type 'Dispatch<SetStateAction<Message[]>>'."

Code answers related to "Javascript"

Browse Popular Code Answers by Language