docs(jsx.md): add missing "!"
Add missing "!" to result of interpolation for `{greeting + "!"}` expression
This commit is contained in:
parent
7e30b62c1e
commit
b6a251b5b8
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ When using JSX, it's possible to interpolate Javascript expressions within JSX t
|
|||
var greeting = "Hello"
|
||||
var url = "http://google.com"
|
||||
var link = <a href={url}>{greeting + "!"}</a>
|
||||
// yields <a href="http://google.com">Hello</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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue