mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Tweak for self closing tag tip
This commit is contained in:
@@ -7,7 +7,7 @@ prev: if-else-in-JSX.html
|
||||
next: maximum-number-of-jsx-root-nodes.html
|
||||
---
|
||||
|
||||
In JSX, `<MyComponent />` alone is valid while `<MyComponent>` isn't.
|
||||
In JSX, `<MyComponent />` alone is valid while `<MyComponent>` isn't. All tags must be closed, either with the self-closing format or with a corresponding closing tag (`</MyComponent>`).
|
||||
|
||||
> Note:
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user