mardi 11 août 2015

What is the difference with using ref and document.findElementById, ect when using ReactJS?

What is the difference/advantages/disadvantages between using:

React.findDOMNode(this.refs.elementReferenceName)

and

document.getElementById(elementId)

when using ReactJS?

Thank you!




Aucun commentaire:

Enregistrer un commentaire