From cf0a22578ddcfd2b7942af0ac07418b4eff1753a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Fri, 31 Oct 2014 10:11:32 -0700 Subject: [PATCH] Merge pull request #2443 from kruppel/kurt/minor-tip-typo Fix typo in If/Else JSX doc. --- docs/tips/03-if-else-in-JSX.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tips/03-if-else-in-JSX.md b/docs/tips/03-if-else-in-JSX.md index 15e2e9384a..33cb088dd6 100644 --- a/docs/tips/03-if-else-in-JSX.md +++ b/docs/tips/03-if-else-in-JSX.md @@ -24,7 +24,7 @@ This means that `if` statements don't fit in. Take this example:
Hello World!
// Is transformed to this JS: -React.createElement("dov", {id: if (condition) { 'msg' }}, "Hello World!"); +React.createElement("div", {id: if (condition) { 'msg' }}, "Hello World!"); ``` That's not valid JS. You probably want to make use of a ternary expression: