Merge pull request #4471 from Yeti-or/yeti-or.fix-docs

Docs: Fix jsx iife example
This commit is contained in:
Jim
2015-07-22 21:04:59 -07:00
2 changed files with 4 additions and 4 deletions
+2 -2
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>
);
+2 -2
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>
);