Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements committed Nov 24, 2020
1 parent c4909fd commit 306e428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/ja/guide/v10/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ TypeScriptがJSXを正しくパースするために、ファイルの拡張子

## コンポーネントの型

Preactでは、コンポーネントの種類ごとに型を付ける方法が異なります
Preactでは、コンポーネントの種類ごとに型を加える方法が異なります
クラスコンポーネントには型安全を保証するためのジェネリック型変数があります。
TypeScriptは、関数がJSXを返す場合に限り、それを関数コンポーネントと判定します。
関数コンポーネントの`props`を定義する方法は複数あります。

### Function components
### 関数コンポーネント

Typing regular function components is as easy as adding type information to the function arguments.
関数コンポーネントに型を加えることは関数の引数に型を加えることと同じくらい簡単です。

```tsx
type MyComponentProps = {
Expand Down

0 comments on commit 306e428

Please sign in to comment.