@samitouri / QOS-React-2 / commits / 3ce58df87d

Docs: Fix jsx iife example

Vasiliy Loginevskiy committed Jul 23, 2015 at 06:08 UTC 3ce58df87d413cd7acf1a82986f2d74bd312c51f
2 files changed +4 -4
docs/tips/03-if-else-in-JSX.ko-KR.md
+2 -2
@@ -61,14 +61,14 @@ return (
61 <p>{this.state.color || "white"}</p>
62 <h3>Hex</h3>
63 <p>
64 - {() => {
64 + {(() => {
65 switch (this.state.color) {
66 case "red": return "#FF0000";
67 case "green": return "#00FF00";
68 case "blue": return "#0000FF";
69 default: return "#FFFFFF";
70 }
71 - }()}
71 + })()}
72 </p>
73 </section>
74 );
docs/tips/03-if-else-in-JSX.md
+2 -2
@@ -61,14 +61,14 @@ return (
61 <p>{this.state.color || "white"}</p>
62 <h3>Hex</h3>
63 <p>
64 - {() => {
64 + {(() => {
65 switch (this.state.color) {
66 case "red": return "#FF0000";
67 case "green": return "#00FF00";
68 case "blue": return "#0000FF";
69 default: return "#FFFFFF";
70 }
71 - }()}
71 + })()}
72 </p>
73 </section>
74 );