reactjs best way to handle form