How to detect changes in WooCommerce store (react)?

Ok, so I read up a bit and realized I cannot mix and match (React and pure JS).

So, in the new WooCommerce they’ve created so-called slot fills that you can use to create your own react component as a separate plugin that you can then attach in a few places.

Once you do that, you can use things like useDispatch to interact with the cart store for instance.

tech