<p dir="auto">I understand a component's key is no longer available on a component's props. But how does one get access to a component's own key?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
componentWillMount: function() {
    console.log(this.key); // Undefined.
},
..."><pre class="notranslate"><code class="notranslate">...
componentWillMount: function() {
    console.log(this.key); // Undefined.
},
...
</code></pre></div>
<p dir="auto">In React 0.12.0 if you attempt to use this.key inside a react component, it is <code class="notranslate">undefined</code></p>
<p dir="auto">Simple test case here: <a href="http://jsfiddle.net/jg2pd4ob/2/" rel="nofollow">http://jsfiddle.net/jg2pd4ob/2/</a></p>
<p dir="auto">In 0.11.x you could access this value via <code class="notranslate">this.props.key</code> which has been removed.</p>