mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Update 02.1-jsx-in-depth.md
This commit is contained in:
@@ -141,6 +141,13 @@ var content = <Container>{window.isLoggedIn ? <Nav /> : <Login />}</Container>;
|
||||
var content = Container(null, window.isLoggedIn ? Nav(null, null) : Login(null, null));
|
||||
```
|
||||
|
||||
#### Comments
|
||||
|
||||
It's easy to add comments within your JSX; they're just JS expressions:
|
||||
```javascript
|
||||
var content = <Container>{/* this is a comment */}<Nav /></Container>;
|
||||
```
|
||||
|
||||
## Tooling
|
||||
|
||||
Beyond the compilation step, JSX does not require any special tools.
|
||||
|
||||
Reference in New Issue
Block a user