react-firechat
react-firechat copied to clipboard
Named arguments are inconsistency in Channel component
Thanks for the great content! I have always enjoyed your videos.
There has one minor issue in your Channel component session of the article.
In the beginning, we created a state variable to store our messages within the Channel component.

Then, we update our state within the useEffect hook.
The setDocs(data) was not declared in the component scope. Perhaps you would like to change it to setMessages(data).

Correct me if I was wrong. Thank you!