Skip to content

Url with param #7

@KchTT

Description

@KchTT

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions