Is there an example where we can retrieve the value of a React element without the usage of refs? Is that possible?
var Test = React.createClass({ handle
If you want to retrieve text, use innerText property, if html – innerHTML.
innerText
innerHTML
Example:
handleClick: function(e) { alert(e.currentTarget.innerHTML); }