Const
ProtectedRoute Component
A Higher Order Component that protects routes requiring authentication. It checks if the user is authenticated and:
Component props
The content to be protected
The rendered protected route content or authentication required message
ProtectedRoute Component
A Higher Order Component that protects routes requiring authentication. It checks if the user is authenticated and: