mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4362 from makky3939/translate_04_self_closing_tag
Translate 4-self-closing-tag.md to Japanese
This commit is contained in:
@@ -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>` もまた同様です。
|
||||
Reference in New Issue
Block a user