-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
--- | ||
title: "Legacy React APIs" | ||
title: "レガシー React API" | ||
--- | ||
|
||
<Intro> | ||
|
||
These APIs are exported from the `react` package, but they are not recommended for use in newly written code. See the linked individual API pages for the suggested alternatives. | ||
これらの API は `react` パッケージからエクスポートされていますが、新しく書くコードでの使用は推奨されていません。代替手段については、リンク先の個々の API ページを参照してください。 | ||
|
||
</Intro> | ||
|
||
--- | ||
|
||
## Legacy APIs {/*legacy-apis*/} | ||
## レガシー API {/*legacy-apis*/} | ||
|
||
* [`Children`](/reference/react/Children) lets you manipulate and transform the JSX received as the `children` prop. [See alternatives.](/reference/react/Children#alternatives) | ||
* [`cloneElement`](/reference/react/cloneElement) lets you create a React element using another element as a starting point. [See alternatives.](/reference/react/cloneElement#alternatives) | ||
* [`Component`](/reference/react/Component) lets you define a React component as a JavaScript class. [See alternatives.](/reference/react/Component#alternatives) | ||
* [`createElement`](/reference/react/createElement) lets you create a React element. Typically, you'll use JSX instead. | ||
* [`createRef`](/reference/react/createRef) creates a ref object which can contain arbitrary value. [See alternatives.](/reference/react/createRef#alternatives) | ||
* [`isValidElement`](/reference/react/isValidElement) checks whether a value is a React element. Typically used with [`cloneElement`.](/reference/react/cloneElement) | ||
* [`PureComponent`](/reference/react/PureComponent) is similar to [`Component`,](/reference/react/Component) but it skip re-renders with same props. [See alternatives.](/reference/react/PureComponent#alternatives) | ||
* [`Children`](/reference/react/Children) を用いて、props として受け取る `children` の JSX を操作・変換します。[代替手段](/reference/react/Children#alternatives) | ||
* [`cloneElement`](/reference/react/cloneElement) を用いて、別の要素に基づいて React 要素を作成します。[代替手段](/reference/react/cloneElement#alternatives) | ||
* [`Component`](/reference/react/Component) を用いて、JavaScript クラスとして React コンポーネントを定義します。[代替手段](/reference/react/Component#alternatives) | ||
* [`createElement`](/reference/react/createElement) を用いて、React 要素を作成します。通常は代わりに JSX を使用します。 | ||
* [`createRef`](/reference/react/createRef) を用いて、任意の値を保持できる ref オブジェクトを作成します。[代替手段](/reference/react/createRef#alternatives) | ||
* [`isValidElement`](/reference/react/isValidElement) を用いて、値が React 要素であるかどうかを確認します。通常は [`cloneElement`](/reference/react/cloneElement) と一緒に使用されます。 | ||
* [`PureComponent`](/reference/react/PureComponent) は [`Component`](/reference/react/Component) に似ていますが、同じ props での再レンダーをスキップします。[代替手段](/reference/react/PureComponent#alternatives) | ||
|
||
|
||
--- | ||
|
||
## Deprecated APIs {/*deprecated-apis*/} | ||
## 廃止予定の API {/*deprecated-apis*/} | ||
|
||
<Deprecated> | ||
|
||
These APIs will be removed in a future major version of React. | ||
これらの API は、React の将来のメジャーバージョンで削除される予定です。 | ||
|
||
</Deprecated> | ||
|
||
* [`createFactory`](/reference/react/createFactory) lets you create a function that produces React elements of a certain type. | ||
* [`createFactory`](/reference/react/createFactory) は、特定のタイプの React 要素を生成する関数を作成します。 |