1

I'm an (almost-)React beginner relaunching the site of our Tennis club as an exercise. I have a public site but also an internal area which is restricted to members.

I already created and designed the public part with Router etc but now I wonder how I design it to switch to the internal area: After clicking "Login" I'll have a different menu and different colors etc which means that I have a different routing as well.

Should I plan this altogether in a single page app or is it better to go with two? How?

Thank you for any recommendation.

Best Conny

Cooney3000
  • 11
  • 3
  • 1
    https://tylermcginnis.com/react-router-protected-routes-authentication/ – D. Richard Mar 25 '20 at 16:40
  • 1
    Does this answer your question? [How to implement authenticated routes in React Router 4?](https://stackoverflow.com/questions/43164554/how-to-implement-authenticated-routes-in-react-router-4) – Pushkin Mar 25 '20 at 16:41
  • 1
    Thanks for the blog, it's **very helpful**. Also thanks for redirecting me to the proper similar question/answer! – Cooney3000 Mar 25 '20 at 18:44

0 Answers0