Browse Source

Docs: Fix jsx iife example

main
Vasiliy Loginevskiy 10 years ago
parent
commit
21610afd44
  1. 4
      tips/03-if-else-in-JSX.ko-KR.md
  2. 4
      tips/03-if-else-in-JSX.md

4
tips/03-if-else-in-JSX.ko-KR.md

@ -61,14 +61,14 @@ return (
<p>{this.state.color || "white"}</p>
<h3>Hex</h3>
<p>
{() => {
{(() => {
switch (this.state.color) {
case "red": return "#FF0000";
case "green": return "#00FF00";
case "blue": return "#0000FF";
default: return "#FFFFFF";
}
}()}
})()}
</p>
</section>
);

4
tips/03-if-else-in-JSX.md

@ -61,14 +61,14 @@ return (
<p>{this.state.color || "white"}</p>
<h3>Hex</h3>
<p>
{() => {
{(() => {
switch (this.state.color) {
case "red": return "#FF0000";
case "green": return "#00FF00";
case "blue": return "#0000FF";
default: return "#FFFFFF";
}
}()}
})()}
</p>
</section>
);

Loading…
Cancel
Save