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
renderreturnsnullorfalse,finddomnodereturnsnull.
the value returned native dom element—not react-specific type, why it's not covered react documentation.
Comments
Post a Comment