example of shopping cart implemented in react.js