I have problem passing id to my page with product, I tried everything and search answer but it still doesn\'t work.
id
Here is my index.js:
impor
I was also getting the same problem when I used this.props.params.id.
this.props.params.id
But when i tried to put console.log(this.props) in the component where I'm passing the id, it shows my id in match object so use:
console.log(this.props)
this.props.match.params.id
to get the id (notice the added match).
match