project_chat_application icon indicating copy to clipboard operation
project_chat_application copied to clipboard

If you are having issues, look here

Open T-Damer opened this issue 4 years ago • 3 comments

Well, socket.io updated few times, live preview not working, but no worries, I fixed most problems, take a look at source code, it might help ya! (Careful, there's new files, but we need them) https://github.com/T-Damer/socket-chat/

T-Damer avatar Aug 23 '21 17:08 T-Damer

I am having errors with react router dom , i followed the code as on the tutorial and i had this error

Error: A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.

TabotCharlesBessong avatar Dec 22 '21 08:12 TabotCharlesBessong

I am having errors with react router dom , i followed the code as on the tutorial and i had this error

Error: A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .

try to use

return (<Router> <Routes> <Route exact path="/" element={<Join/>}/> <Route path="/chat" element={<Chat/>}/> </Routes> </Router> )

ViktorCoder avatar Dec 22 '21 17:12 ViktorCoder

Place your components with < inside of the {}

ViktorCoder avatar Dec 22 '21 17:12 ViktorCoder