javascript - React.findDOMNode(component) list of methods -


i know there react.finddomnode(component).value/focus(). looking methods can used react.finddomnode.

for example, have <input type='checkbox' ref='component' /> tag, , tried react.finddomnode(this.refs.component).selected (i dont know if exists), , there nothing.

react.finddomnode described top-level api documentation:

domelement finddomnode(reactcomponent component) 

if component has been mounted dom, returns corresponding native browser dom element. method useful reading values out of dom, such form field values , performing dom measurements. when render returns null or false, finddomnode returns null.

the value returned native dom element—not react-specific type, why it's not covered react documentation.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -