ReactSSRCasts icon indicating copy to clipboard operation
ReactSSRCasts copied to clipboard

Url with param

Open KchTT opened this issue 7 years ago • 0 comments

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

KchTT avatar Jan 10 '18 12:01 KchTT