docs(jsx.md): add missing "!"

Add missing "!" to result of interpolation for `{greeting + "!"}` expression
This commit is contained in:
micellius 2017-04-27 17:21:00 +03:00 committed by GitHub
parent 7e30b62c1e
commit b6a251b5b8

View file

@ -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: