Skip to content

Commit 649991f

Browse files
authored
Update dont-call-proptypes.md
1 parent 7d7abc1 commit 649991f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/warnings/dont-call-proptypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permalink: warnings/dont-call-proptypes.html
88
>
99
> 自从 React v15.5 起,`React.PropTypes` 被移动到了另一个 package 中。请改用 [`prop-types`](https://www.npmjs.com/package/prop-types)
1010
>
11-
> 我们提供了 [一个重构件(codemod脚本](/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes) 来自动完成这个过程。
11+
> 我们提供了 [codemod 脚本](/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes) 来自动完成这个过程。
1212
1313
在 React 未来的主要版本(major release)中。执行 PropType 校验函数的代码应该从生产环境中剥离。此时,任何手动调用这些函数的代码(还没从生产环境中剥离的)都会产生报错。
1414

0 commit comments

Comments
 (0)