Skip to content

ReactJS and Magento 2: Update Shopping Cart in React?

I would like to integrate ReactJS as a component in Magento 2 for a custom module. In this module it should be possible to add items to the shopping cart.

How can I trigger Magento in ReactJS to execute Magento_Customer/js/customer-data => customer-data .reload([“cart”], true);

executes?