@samitouri / QOS-React-2 / commits / 4b3b32e418

Fix typo in If/Else JSX doc.

Kurt Ruppel committed Oct 31, 2014 at 09:52 UTC 4b3b32e4180ff4b59652b1c43cfde176d8f8693a
1 file changed +1 -1
docs/tips/03-if-else-in-JSX.md
+1 -1
@@ -24,7 +24,7 @@ This means that `if` statements don't fit in. Take this example:
24 <div id={if (condition) { 'msg' }}>Hello World!</div>
25
26 // Is transformed to this JS:
27 -React.createElement("dov", {id: if (condition) { 'msg' }}, "Hello World!");
27 +React.createElement("div", {id: if (condition) { 'msg' }}, "Hello World!");
28 ```
29
30 That's not valid JS. You probably want to make use of a ternary expression: