MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / handleAddToCart

Function handleAddToCart

frontend/src/screens/ProductScreen.js:43–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 );
42 };
43 const handleAddToCart = () => {
44 props.history.push('/cart/' + props.match.params.id + '?qty=' + qty);
45 };
46
47 return (
48 <div>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected