Skip to content

Commit c9c9b0c

Browse files
smikitkypotato4d
authored andcommitted
Translate Context.displayName (#252)
1 parent cef6a77 commit c9c9b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ class MyClass extends React.Component {
198198
199199
### `Context.displayName` {#contextdisplayname}
200200

201-
Context object accepts a `displayName` string property. React DevTools uses this string to determine what to display for the context.
201+
コンテクストオブジェクトは `displayName` という文字列型のプロパティを有しています。React DevTools はこの文字列を利用してコンテクストの表示のしかたを決定します。
202202

203-
For example, the following component will appear as MyDisplayName in the DevTools:
203+
例えば以下のコンポーネントは DevTools で MyDisplayName と表示されます。
204204

205205
```js{2}
206206
const MyContext = React.createContext(/* some value */);

0 commit comments

Comments
 (0)