Skip to content

Commit

Permalink
Update 05-maximum-number-of-jsx-root-nodes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alextsg committed Dec 21, 2014
1 parent f7166d0 commit 3fd6ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tips/05-maximum-number-of-jsx-root-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ next: style-props-value-px.html

Currently, in a component's `render`, you can only return one node; if you have, say, a list of `div`s to return, you must wrap your components within a `div`, `span` or any other component.

Don't forget that JSX compiles into regular js; returning two functions doesn't really make syntactic sense. Likewise, don't put more than one child in a ternary.
Don't forget that JSX compiles into regular JS; returning two functions doesn't really make syntactic sense. Likewise, don't put more than one child in a ternary.

0 comments on commit 3fd6ac5

Please sign in to comment.