You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Im trying to add the user id in the url..like /users/1
I put 'user/:id' router´s file but the problem is that when i call the component with props it render twice.
'const UserPanel = (props) => {'
at first render get de props.params.id { id: 1 }
next render get { id: 'bundle.js' }
Do you know what may be happening?
Thanks a lot! your courses are very clear...
The text was updated successfully, but these errors were encountered:
Hi!
Im trying to add the user id in the url..like /users/1
I put 'user/:id' router´s file but the problem is that when i call the component with props it render twice.
'const UserPanel = (props) => {'
at first render get de props.params.id { id: 1 }
next render get { id: 'bundle.js' }
Do you know what may be happening?
Thanks a lot! your courses are very clear...
The text was updated successfully, but these errors were encountered: