Docs: Fix jsx iife example

This commit is contained in:
Vasiliy Loginevskiy
2015-07-23 06:08:11 +03:00
parent b7427a7794
commit 21610afd44
2 changed files with 4 additions and 4 deletions

View File

@@ -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>
);

View File

@@ -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>
);