0

In the below image, I have a .js file with Private routes and I wanna include in the App.js which limits a user from going to a certain url if they are not logged in. I have trouble bringing the idea in the V6 react-router-dom. I have tried couple of methods but it fails. I think because I have another UserContext.Provider Which I only use it to createContext().

Drew Reese
  • 103,803
  • 12
  • 69
  • 96
Barry
  • 1
  • 1

0 Answers0