Created
September 26, 2017 08:47
-
-
Save shabaz-ejaz/2a945d700d9ef14d3f18f8d0a5fbca03 to your computer and use it in GitHub Desktop.
Immediately invoked function expressions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{(() => { | |
switch (this.state.color) { | |
case "red": return "#FF0000"; | |
case "green": return "#00FF00"; | |
case "blue": return "#0000FF"; | |
default: return "#FFFFFF"; | |
} | |
})()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment