Skip to content

Commit 1e554ac

Browse files
committed
Merge branch 'warnings' of https://github.com/uehaj/ja.reactjs.org into warnings
2 parents 13a5f74 + d023803 commit 1e554ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

content/warnings/dont-call-proptypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Button.propTypes = {
5959

6060
### サードパーティの PropTypes における誤検知を修正する
6161

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

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

content/warnings/invalid-aria-prop.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Invalid ARIA Prop Warning
33
layout: single
44
permalink: warnings/invalid-aria-prop.html
55
---
6-
「無効なARIA Props」警告 (invalid-aria-prop) は、Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) の[標準仕様](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties)に無い aria-* プロパティで DOM 要素をレンダリングしようとした場合に発生します。
6+
7+
「無効な ARIA Props」警告 (invalid-aria-prop) は、Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) の[標準仕様](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties)に無い aria-* プロパティで DOM 要素をレンダリングしようとした場合に発生します。
78

89
1. 使用した props が標準仕様に準拠しているはずのものであるなら、綴りをよく確認してください。 `aria-labelledby``aria-activedescendant` の綴り間違いはありがちです。
910

0 commit comments

Comments
 (0)