DEV Community

Discussion on: Setting up an authenticated route in React

Collapse
 
khophi profile image
KhoPhi

Quick question. Let's say you wanna nest the login and sign up under an /auth url, to form something like /auth/login or /auth/signup with the above scenario how will one go about it?

Thanks for the article by the way.

Collapse
 
calier profile image
Calie Rushton

You're welcome! I'm sorry for not getting back to you sooner but I appreciate you reading and responding.

I hoped to work this out for you but time ran away, so I'd recommend having a look at Tyler McGinnis' excellent guides: tylermcginnis.com/react-router-nes...

I think some other members of the community have this well covered on here also