Translate "forwardRef" by smikitky · Pull Request #631 · reactjs/ja.react.dev

@smikitky

@smikitky

@github-actions

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! 🙌

smikitky

#### 返り値 {/*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 属性" と訳してあります。

smikitky

#### 返り値 {/*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 属性" と訳してあります。

koba04

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM!!!