'Private Routes - React Router v6 [duplicate]

I'm doing a tutorial on Youtube and I am trying to use RRD v6.

https://www.youtube.com/watch?v=x_EEwGe-a9o around the 4:26:29 mark he is implementing a component that validates a private route called "IsUserRedirect".

I don't have users yet, but I can't get anything to render.

Here is what I have so far

enter image description here

enter image description here

I tried to wrap <IsUserRedirect> in side the element prop where the component is rendered.

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source