I imported react-router dom also but cannot able to remove this error.
App.js
Chat.js
CodePudding user response:
You are missing an r
in the useParams
import.
CodePudding user response:
Your code is not compiling because you have a typo.
You are importing useParams from 'react-route-dom' instead of 'react-router-dom'.
Just change that and it should compile.