React-router by default provides public routes. Perhaps there are situations where you want the routes are accessible to only authenticated users or make the routes available based on some business logic. In such a case private routes are the best.

SITE FOR WEB DEVELOPERS.
React-router by default provides public routes. Perhaps there are situations where you want the routes are accessible to only authenticated users or make the routes available based on some business logic. In such a case private routes are the best.