Revision: 70364
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 23, 2016 04:57 by heathbo
Initial Code
accessDiv: function(){ var test = this.refs["domainModal"] } render: function(){ return <div ref="domainModal"></div> }
Initial URL
Initial Description
Within a react component. How to gain access to the HTML that was just rendered. Any returned html element that is tagged with a ref, can easily be accessed by it's ref after it's been rendered. In the below case, use this.refs["domainModal"] to access the html. This access is limited to within the scope of the instance of this react component.
Initial Title
React: How to access returned HTML within a React Component
Initial Tags
javascript
Initial Language
JavaScript