Open olypros opened 7 years ago
https://facebook.github.io/react/docs/forms.html#handling-multiple-inputs
Im trying to implement this using alt but its not working. I cannot pass js object to store from action.
It only works individually,specifically defining single functions for each input element.
E.g I have to create
handleName(e){...} handleMomName(e){...}
handleName(e){...}
handleMomName(e){...}
in Actions and pass value to stores and set its state there.
handleNameSuccess(val){this.stateName = val;} handleMomSuccess(val){this.stateMomName = val;.}
handleNameSuccess(val){this.stateName = val;}
handleMomSuccess(val){this.stateMomName = val;.}
and so on..
But how do i do multiple input at once using alt?
https://facebook.github.io/react/docs/forms.html#handling-multiple-inputs
Im trying to implement this using alt but its not working. I cannot pass js object to store from action.
It only works individually,specifically defining single functions for each input element.
E.g I have to create
handleName(e){...}
handleMomName(e){...}
in Actions and pass value to stores and set its state there.
handleNameSuccess(val){this.stateName = val;}
handleMomSuccess(val){this.stateMomName = val;.}
and so on..
But how do i do multiple input at once using alt?