Javascript – Get computed data from multiple children in React parent component
I want to have 2 functional React components: a Data component that holds a value in state, that is passed through props: a SummedValue that also holds a value in state, but calculates this value as the sum of it's…