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

Docs: Fix jsx iife example
(cherry picked from commit 42caf036e2)
This commit is contained in:
Jim
2015-07-24 17:41:24 -07:00
committed by Paul O’Shannessy
parent 9aa45c7517
commit ae5224a05f
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>
);