forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate 04-self-closing-tag.md to Japanese
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
id: self-closing-tag-ja-JP | ||
title: 自己終了タグ | ||
layout: tips | ||
permalink: self-closing-tag-ja-JP.html | ||
prev: if-else-in-JSX-ja-JP.html | ||
next: maximum-number-of-jsx-root-nodes-ja-JP.html | ||
--- | ||
|
||
JSXでは、 `<MyComponent />` 単体は正しいですが、 `<MyComponent>` は正しくありません。 全てのタグは、自己終了の形式または対応する終了タグ( `</MyComponent>` )で閉じるべきです。 | ||
|
||
> 注意: | ||
> | ||
> 全てのReactコンポーネントは `<div />` のように自己終了タグになり得ます。 `<div></div>` もまた同様です。 |