Skip to content

Commit 13a5f74

Browse files
committed
updated review commented
1 parent 2261647 commit 13a5f74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/warnings/dont-call-proptypes.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ Button.propTypes = {
6262
あなたがサードパーティ製 PropTypes の作者で、利用者に既存の React PropTypes をラップさせる場合、ライブラリがこの警告を発生させるのを利用者は見かけるようになるでしょう。
6363
これは手動によるPropTypesの呼び出しを[検知するために渡す最後尾の引数 `secret`](https://github.com/facebook/react/pull/7132)を React が確認できないために起こります。
6464

65-
以下に修正方法を示します。
66-
例として使用しているのは [react-bootstrap/react-prop-types](https://github.com/react-bootstrap/react-prop-types/blob/0d1cd3a49a93e513325e3258b28a82ce7d38e690/src/deprecated.js) にある `deprecated` です。
67-
現時点での実装では単に引数として `props``propName`、そして `componentName` を渡しているだけです。
65+
以下に修正方法を示します。例として使用しているのは [react-bootstrap/react-prop-types](https://github.com/react-bootstrap/react-prop-types/blob/0d1cd3a49a93e513325e3258b28a82ce7d38e690/src/deprecated.js) にある `deprecated` です。現時点での実装では単に引数として `props``propName`、そして `componentName` を渡しているだけです。
6866

6967
```javascript
7068
export default function deprecated(propType, explanation) {

0 commit comments

Comments
 (0)