DEV Community

Discussion on: 🔐 Private Route in React Router v6

Collapse
 
urafiz profile image
UraFIZ

Whan can we use it in create-react-app?

Collapse
 
iamandrewluca profile image
Andrei Luca • Edited

Whenever you want. CRA does not have a router installed by default. But keep in mind it is in beta.

Collapse
 
urafiz profile image
UraFIZ

Bro, you are mistaken. I gave it a try to use all the new features of v6 and didn't succeed coz something under the hood used a history.push.

Thread Thread
 
iamandrewluca profile image
Andrei Luca • Edited

That CRA does not use a router by default I'm very sure. It depends what version of router do you have installed at the moment.

Thread Thread
 
iamandrewluca profile image
Andrei Luca

See codesandbox liinks at the end. In that examples I'm using CRA