When do I need to use the refs property?
- For example, when you click a button in a form, you can collect the values of all the inputs (by calling this.refs.refname.value) and send them. - Alex Slobodyansky
- oneWhen you need something with pens to read from the dom, the size, the value of the input, etc. The documentation describes in detail (see below) facebook.imtqy.com/react/docs/more-about-refs.html - Duck Learns to Take Cover
|