React – the right way to pass form element state to sibling/parent elements?
Suppose I have a React class P, which renders two child classes, C1 and C2. C1 contains an input field. I’ll refer to this input field as Foo. My goal is to let C2 react to changes in Foo. I’ve come up with two solutions, but neither of them feels quite right. First solution: Assign … Read more