Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url with param #7

Open
KchTT opened this issue Jan 10, 2018 · 0 comments
Open

Url with param #7

KchTT opened this issue Jan 10, 2018 · 0 comments

Comments

@KchTT
Copy link

KchTT commented Jan 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant