[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #4362 from makky3939/translate_04_self_closing_tag
Browse files Browse the repository at this point in the history
Translate 4-self-closing-tag.md to Japanese
  • Loading branch information
jimfb committed Jul 13, 2015
2 parents ea964e7 + 3098a6f commit bd390af
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/tips/04-self-closing-tag.ja-JP.md
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>` もまた同様です。

0 comments on commit bd390af

Please sign in to comment.