I am learning to react.I am recreating a webpage with react webpage-link
my question is, was it designed only with react if they have done so, how do calculations work? after submitting the selected items move them to the cart.
can someone please explain this?
2
Answers
You can do something like that using formik
You can also use redux for data store, whenever you add an item in cart(Price or quantity).
When you need to show of total so you calculate the price and quantity
Example:- 5 quantity and 40 price
Total = (5 * 40) = 200