From 7445d34974d169dcb44f52694c2ab7af1a4dad28 Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Wed, 16 Apr 2025 16:22:06 +0900 Subject: [PATCH] Translate "captureOwnerStack" --- .../reference/react/captureOwnerStack.md | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/content/reference/react/captureOwnerStack.md b/src/content/reference/react/captureOwnerStack.md index f8ed21a8c..3be6e571b 100644 --- a/src/content/reference/react/captureOwnerStack.md +++ b/src/content/reference/react/captureOwnerStack.md @@ -10,7 +10,7 @@ The `captureOwnerStack` API is currently only available in React's Canary and ex -`captureOwnerStack` reads the current Owner Stack in development and returns it as a string if available. +`captureOwnerStack` は、開発環境で現在のオーナスタック (Owner Stack) を読み取り、利用可能な場合は文字列として返します。 ```js const stack = captureOwnerStack(); @@ -22,11 +22,11 @@ const stack = captureOwnerStack(); --- -## Reference {/*reference*/} +## リファレンス {/*reference*/} ### `captureOwnerStack()` {/*captureownerstack*/} -Call `captureOwnerStack` to get the current Owner Stack. +`captureOwnerStack` を呼び出して、現在のオーナスタックを取得します。 ```js {5,5} import * as React from 'react'; @@ -39,33 +39,33 @@ function Component() { } ``` -#### Parameters {/*parameters*/} +#### 引数 {/*parameters*/} -`captureOwnerStack` does not take any parameters. +`captureOwnerStack` は引数を受け取りません。 -#### Returns {/*returns*/} +#### 返り値 {/*returns*/} -`captureOwnerStack` returns `string | null`. +`captureOwnerStack` は `string | null` を返します。 -Owner Stacks are available in -- Component render -- Effects (e.g. `useEffect`) -- React's event handlers (e.g. `