uncaught Error: match is undefined? How to fix

Viewed 29

This is my ProductDetails.js file where is causing an issue. (https://i.stack.imgur.com/a5MyG.png) and my App.js

I know this is very simple but I'm stuck here and cannot go further... Any help would be appreciated!

One more question - Inside App.js, where Route is, in the tutorial was using components={} attribute instead of element={}. And when I tried the same it gave me an error, so I had to fix it another way. Do you know why it caused an error?

From the tutorial [enter image description here][1]

My fix --

Screenshot of error https://i.stack.imgur.com/2WK2J.png https://i.stack.imgur.com/P4qL9.png

1 Answers

maybe you should post a screenshot of error stack if possible to help us locate more efficiently

Related