We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Each child in the categories list should have a unique "key" prop. in emarket/client/src/components/Category/index.js file
emarket/client/src/components/Category/index.js
this.state.result.map(e => ( <Link to={'/shop/'+e.id }> <div onClick={this.props.onClick}> <img className="grid-item" src={e.img} /> <p className="category">{e.name}</p> </div> </Link>
Add key={e.id} to <Link to={'/shop/'+e.id }> to solve the problem.
key={e.id}
<Link to={'/shop/'+e.id }>
Same thing for /emarket/client/src/components/Product_card/index.js file
/emarket/client/src/components/Product_card/index.js
myProducts.map(e=>( <Link to={ '/product/' + e.id }><div className="cards"> <div className="product-card-back" > <div className="product-card" > <img className="product-img" src={e.img} alt="product-img"/> <p className="product-name">{e.name}</p> <p className="product-price">₪ {e.price}</p> </div> </div> </div> </Link>
To solve this add key={e.id} to <Link to={ '/product/' + e.id }>
<Link to={ '/product/' + e.id }>
The text was updated successfully, but these errors were encountered:
someyaaltous
Muniralsharif
YousefQawasmeh
No branches or pull requests
Each child in the categories list should have a unique "key" prop.
in
emarket/client/src/components/Category/index.js
fileAdd
key={e.id}
to<Link to={'/shop/'+e.id }>
to solve the problem.Same thing for
/emarket/client/src/components/Product_card/index.js
fileTo solve this add
key={e.id}
to<Link to={ '/product/' + e.id }>
The text was updated successfully, but these errors were encountered: