|
@ -22,7 +22,7 @@ It doesn't alter the semantics of JavaScript. |
|
|
|
|
|
|
|
|
React can either render HTML tags (strings) or React components (classes). |
|
|
React can either render HTML tags (strings) or React components (classes). |
|
|
|
|
|
|
|
|
To render a HTML tag, just use lower-case tag names in JSX: |
|
|
To render an HTML tag, just use lower-case tag names in JSX: |
|
|
|
|
|
|
|
|
```javascript |
|
|
```javascript |
|
|
var myDivElement = <div className="foo" />; |
|
|
var myDivElement = <div className="foo" />; |
|
|