@samitouri / QOS-React-2 / commits / 3098a6f66e

Translate 04-self-closing-tag.md to Japanese

Masaki KOBAYASHI committed Jul 13, 2015 at 12:38 UTC 3098a6f66ebc66ea474ff88cc723a34bf3c42c86
1 file changed +14
docs/tips/04-self-closing-tag.ja-JP.md new
+14
@@ -0,0 +1,14 @@
1 +---
2 +id: self-closing-tag-ja-JP
3 +title: 自己終了タグ
4 +layout: tips
5 +permalink: self-closing-tag-ja-JP.html
6 +prev: if-else-in-JSX-ja-JP.html
7 +next: maximum-number-of-jsx-root-nodes-ja-JP.html
8 +---
9 +
10 +JSXでは、 `<MyComponent />` 単体は正しいですが、 `<MyComponent>` は正しくありません。 全てのタグは、自己終了の形式または対応する終了タグ( `</MyComponent>` )で閉じるべきです。
11 +
12 +> 注意:
13 +>
14 +> 全てのReactコンポーネントは `<div />` のように自己終了タグになり得ます。 `<div></div>` もまた同様です。