can you show me how to set the values with previous and new ?
I'll show you how to track previous and new values using React's state management. Here's how you can modify this code:
how can I set the value taking into account the prev and passing a callback function to the setTotaliBalancer
I'll show you how to modify the setTotaliBalancer function to use a callback function that has access to the previous values:
setTotaliBalancer
how can I send the value of the totaliBilancer to the parent component