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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -