Browse Source

Small nit: add a sentence about readability back

main
Dan Abramov 9 years ago
committed by GitHub
parent
commit
5c995eebba
  1. 2
      docs/introducing-jsx.md

2
docs/introducing-jsx.md

@ -48,7 +48,7 @@ ReactDOM.render(
[Try it on CodePen.](http://codepen.io/gaearon/pen/PGEjdG?editors=0010) [Try it on CodePen.](http://codepen.io/gaearon/pen/PGEjdG?editors=0010)
While it isn't mandatory, when doing this, we also recommend wrapping it in parentheses to avoid the pitfalls of [automatic semicolon insertion](http://stackoverflow.com/q/2846283) We split JSX over multiple lines for readability. While it isn't mandatory, when doing this, we also recommend wrapping it in parentheses to avoid the pitfalls of [automatic semicolon insertion](http://stackoverflow.com/q/2846283).
### JSX is an Expression Too ### JSX is an Expression Too

Loading…
Cancel
Save