fix var name
This commit is contained in:
parent
a0def08101
commit
e4d69c409a
1 changed files with 2 additions and 1 deletions
|
|
@ -38,7 +38,8 @@ When using JSX, it's possible to interpolate Javascript expressions within JSX t
|
||||||
```jsx
|
```jsx
|
||||||
var greeting = "Hello"
|
var greeting = "Hello"
|
||||||
var url = "http://google.com"
|
var url = "http://google.com"
|
||||||
var div = <a href={url}>{greeting + "!"}</a>
|
var link = <a href={url}>{greeting + "!"}</a>
|
||||||
|
// yields <a href="http://google.com">Hello</a>
|
||||||
```
|
```
|
||||||
|
|
||||||
Components can be used by using a convention of uppercasing the first letter of the component name:
|
Components can be used by using a convention of uppercasing the first letter of the component name:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue