mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update manually
This commit is contained in:
@@ -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'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>
|
||||
|
||||
Reference in New Issue
Block a user