<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Potential bug</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Render react app produces warning in development mode:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."><pre class="notranslate"><code class="notranslate">Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template for React 16: <a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>, template for React 15: <a href="https://jsfiddle.net/hmbg7e9w/" rel="nofollow">https://jsfiddle.net/hmbg7e9w/</a>).</strong></p>
<ul dir="auto">
<li>create a new project <code class="notranslate">Project A</code> that uses <code class="notranslate">create-react-class</code> to create a Component <code class="notranslate">ComponentX</code></li>
<li>build the project into a library (minify all js assets)</li>
<li>create another project <code class="notranslate">Project B</code> and include <code class="notranslate">Project A</code> as a dependency</li>
<li>Create another React Component <code class="notranslate">const ComponentY extends React.Component</code>, and use <code class="notranslate">ComponentX</code> from <code class="notranslate">Project A</code></li>
<li>bundle <code class="notranslate">Project B</code> with production build</li>
<li>create a third project <code class="notranslate">Project C</code>, and include <code class="notranslate">Project B</code> as a dependency</li>
<li>build a react app that uses <code class="notranslate">ComponentY</code> from <code class="notranslate">Project B</code></li>
<li>warnings!!!!</li>
</ul>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
there should not have any warnings regarding <code class="notranslate">create-react-class</code> from a third party dependency</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br>
React version 15.6.2</p>
<p dir="auto">One quick example is installing <code class="notranslate">adslot-ui</code> as a dependency (<a href="https://www.npmjs.com/package/adslot-ui/tutorial" rel="nofollow">https://www.npmjs.com/package/adslot-ui/tutorial</a>), then create a react app that uses <code class="notranslate">Carousel</code> component (this component implements <code class="notranslate">nuka-carousel</code>, which uses <code class="notranslate">create-react-class</code>)</p>
<p dir="auto">As migrating from 15.4 to 15.5, I am rewrite original react components with <code class="notranslate">create-react-class</code>.</p>
<p dir="auto">However, there is a warning.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="react-15.5.4.js?bust=1497843639843:3287 Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."><pre class="notranslate"><code class="notranslate">react-15.5.4.js?bust=1497843639843:3287 Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.
</code></pre></div>
<p dir="auto">As I am really transferring from a <strong>classic</strong> <code class="notranslate">React.createClass</code> definition, I would like to ask is this warning appropriate? Or, this is a depreciation sames as the level of migrating to <code class="notranslate">create-react-class</code>?</p>
<p dir="auto">Ooops, I get ticket <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="236786081" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/9999" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/9999/hovercard" href="https://github.com/facebook/react/issues/9999">#9999</a>  :D</p>