Answers for "how to get the total price of all product in cart using react"

1

how to get the total price of all product in cart using react

<td>total price :{data.reduce((total, item)=>total+(item.aprice*item.quantity),0)}</td>
Posted by: Guest on March-24-2022

Code answers related to "how to get the total price of all product in cart using react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language