access root element of react component
<p>If I have the following in the <code>render()</code> function of my react component</p>

<pre><code>return &lt;div ref="myId"&gt;&lt;/div&gt;;
</code></pre>

<p>I know I can access the div element in my react code with <code>this.refs.myId</code>.  But if the ref attribute were not defined in the div element, is there another way for me get a handle on the div element since it is a <strong>root element</strong> of the component?</p>