+ 1
Render as per situtaion in react
How to set the navbar such that it behaves differntly when logged in ?i mean about the tag and syntax .
3 Respostas
+ 2
Use react router dom
https://code.sololearn.com/Wkr72RF2dNh1/?ref=app
+ 1
If (logged) return {... } else return {... }
+ 1
This might be helpful.
https://code.sololearn.com/Wa235A2A3A12/?ref=app