diff --git a/tips/03-if-else-in-JSX.md b/tips/03-if-else-in-JSX.md index 15e2e9384..33cb088dd 100644 --- a/tips/03-if-else-in-JSX.md +++ b/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: