javascript - How can I convert React Element to Html element? -
now i've using ag-grid can create custom renderer each data cells it's required html elements
for example they're elements can created calling document.createelement()
but want use react element custom renderer convenient
don't sure can or not ?
you can try use getdomnode
example: this.refs.giraffe.getdomnode()
, or:
import reactdom 'react-dom'; ... const submitbtn = reactdom.finddomnode(this.refs.submitbutton)
but way has deprecation issues, more here: react.js: difference between finddomnode , getdomnode
Comments
Post a Comment