D
D
Dmitry Avilov2020-08-18 22:28:58
React
Dmitry Avilov, 2020-08-18 22:28:58

How can I implement calculations from the data received from the service in json format?

Good day.
I decided to write an application to provide predictable statistics on React + Redux.
There is a formula with complex calculations, the data for the calculation will come from the football statistics service.

What would be the best/correct way to implement this?
Write the received data to the state and use the already recorded data from the state to perform calculations? Or through 'map' to substitute the destructured data into the formula directly in the request upon receipt of the answer?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question