Translate "forwardRef" by smikitky · Pull Request #631 · reactjs/ja.react.dev
Size changes
Details
📦 Next.js Bundle Analysis for react-dev
This analysis was generated by the Next.js Bundle Analysis action. 🤖
This PR introduced no changes to the JavaScript bundle! 🙌
| #### 返り値 {/*returns*/} | ||
|
|
||
| `forwardRef` returns a React component that you can render in JSX. Unlike React components defined as plain functions, a component returned by `forwardRef` is also able to receive a `ref` prop. | ||
| `forwardRef` は JSX でレンダーできる React コンポーネントを返します。プレーンな関数として定義された React コンポーネントとは異なり、`forwardRef` によって返されるコンポーネントは `ref` 属性を受け取ることもできます。 |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a ref prop" はあまり正確ではないので "ref 属性" と訳してあります。
| #### 返り値 {/*render-returns*/} | ||
|
|
||
| `forwardRef` returns a React component that you can render in JSX. Unlike React components defined as plain functions, the component returned by `forwardRef` is able to take a `ref` prop. | ||
| `forwardRef` は JSX でレンダーできる React コンポーネントを返します。プレーンな関数として定義された React コンポーネントとは異なり、`forwardRef` によって返されるコンポーネントは `ref` 属性を受け取ることができます。 |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a ref prop" はあまり正確ではないので "ref 属性" と訳してあります。
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM!!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters