Tuesday, 31 January 2017

How to assign form values to properties on the component object?

We can use refs to assign form values to properties on the component object.
input: dom element passed in the function
<input ref={(input) => this._name = input}/>

WHAT OTHERS ARE READING/RELATED TO THIS:

0 comments:

Post a Comment