From a4a88e7e8ecbe301cf1a1b65787059bda0ab0d91 Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Mon, 7 Oct 2013 23:35:29 -0400 Subject: [PATCH] one single child in ternary --- cookbook/cb-05-jsx-root-node-count tip.md | 2 +- cookbook/cb-05-jsx-root-node-count.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/cb-05-jsx-root-node-count tip.md b/cookbook/cb-05-jsx-root-node-count tip.md index cb46ec7d..830c9503 100644 --- a/cookbook/cb-05-jsx-root-node-count tip.md +++ b/cookbook/cb-05-jsx-root-node-count tip.md @@ -7,4 +7,4 @@ permalink: jsx-root-node-count-tip.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. +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. diff --git a/cookbook/cb-05-jsx-root-node-count.md b/cookbook/cb-05-jsx-root-node-count.md index ab319221..a1af505d 100644 --- a/cookbook/cb-05-jsx-root-node-count.md +++ b/cookbook/cb-05-jsx-root-node-count.md @@ -12,4 +12,4 @@ You're getting a parsing error from JSX. You might have tried to return more than one node in your component's `render`. Currently, you can only return one node, meaning that you must wrap your components within, say, a `div` or a `span` (or any other component). ### Discussion -Don't forget that JSX compiles into regular js; returning two functions doesn't really make syntactic sense. +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.