Home > Mobile >  React-router-dom v6 not rendering components
React-router-dom v6 not rendering components

Time:06-14

Console throwing errors when I used React router

Have followed the router-dom v6 syntax still not able to render components

CodePudding user response:

This error appear when you have V6 of react-router-dom. V6 have many groundbreaking change so try to read official documentation check this out:https://reacttraining.com/blog/react-router-v6-pre/

Check this for more details

https://stackoverflow.com/a/70075248/11729240

CodePudding user response:

the console errors state that you did a default import for the Home, About, and Profile components, verify if you did a default or named export for those three components

  • Related