Update manually

This commit is contained in:
Dan Abramov
2017-04-08 04:11:46 +01:00
parent 87384331e8
commit 724d87ea40
+1 -1
View File
@@ -80,7 +80,7 @@
<blockquote>
<p>Note:
<code>React.PropTypes</code> is deprecated as of React v15.5. Please use <a href="https://github.com/aackerman/PropTypes">the <code>prop-types</code> library instead</a>.</p>
<code>React.PropTypes</code> is deprecated as of React v15.5. Please use <a href="https://www.npmjs.com/package/prop-types">the <code>prop-types</code> library instead</a>.</p>
</blockquote>
<p>As your app grows, you can catch a lot of bugs with typechecking. For some applications, you can use JavaScript extensions like <a href="https://flowtype.org/">Flow</a> or <a href="https://www.typescriptlang.org/">TypeScript</a> to typecheck your whole application. But even if you don&#39;t use those, React has some built-in typechecking abilities. To run typechecking on the props for a component, you can assign the special <code>propTypes</code> property:</p>