From 5d9bc58d562db505fbab246c7e798e6e56532b68 Mon Sep 17 00:00:00 2001 From: Aaron Ackerman Date: Fri, 7 Apr 2017 22:05:34 -0500 Subject: [PATCH] Point users to the npm page instead of the github project for prop-types (#9373) --- docs/typechecking-with-proptypes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/typechecking-with-proptypes.md b/docs/typechecking-with-proptypes.md index 63c3241c..ce5e0aed 100644 --- a/docs/typechecking-with-proptypes.md +++ b/docs/typechecking-with-proptypes.md @@ -7,7 +7,7 @@ redirect_from: --- > Note: -> `React.PropTypes` is deprecated as of React v15.5. Please use [the `prop-types` library instead](https://github.com/aackerman/PropTypes). +> `React.PropTypes` is deprecated as of React v15.5. Please use [the `prop-types` library instead](https://www.npmjs.com/package/prop-types). As your app grows, you can catch a lot of bugs with typechecking. For some applications, you can use JavaScript extensions like [Flow](https://flowtype.org/) or [TypeScript](https://www.typescriptlang.org/) 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 `propTypes` property: