[reactjs] What's the right way to pass form element state to sibling/parent elements?