Skip to content

Commit 42da3ff

Browse files
optimization with react.memo
1 parent 36f286f commit 42da3ff

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

client/node_modules/.cache/babel-loader/0183e928508f08f7dc25f52cc3e68529.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/components/cart-item/cart-item.component.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ const CardItem = ({ item: { imageUrl, price, name, quantity } }) => {
1515
);
1616
};
1717

18-
export default CardItem;
18+
export default React.memo(CardItem);

0 commit comments

Comments
 (0)