Closed kxiside closed 12 months ago
MERN
cant create show pets page it just shows loading
<Link to={`/products/${product._id}`} className='btn btn-info'> { product.name } </Link>
maybe i have an outdated version because i followed the pets app for show and i still cant get it to work
changing id to _id
Paste a link to your repository here https://github.com/kxiside/jackiemoon-client
In your App.jsx try adding a / to your route for ProductShow so path='/products/:id'
/
path='/products/:id'
i tried this earlier! still says loading.. also i got the babel plugin warning.
What stack are you using?
(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)
MERN
What's the problem you're trying to solve?
cant create show pets page it just shows loading
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
What is your best guess as to the source of the problem?
maybe i have an outdated version because i followed the pets app for show and i still cant get it to work
What things have you already tried to solve the problem?
changing id to _id
Paste a link to your repository here https://github.com/kxiside/jackiemoon-client