I am using react router v6 and I am not sure what prop I need to execute my comment. I could use some assistance.
<Route path="/" element={}
//if user is logged go to home if not go to register
prop?={user ? : }
/>
I am using react router v6 and I am not sure what prop I need to execute my comment. I could use some assistance.
<Route path="/" element={}
//if user is logged go to home if not go to register
prop?={user ? : }
/>
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.