Created
January 23, 2016 08:24
-
-
Save StevenJL/2fd105acceb35b677e86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// you can interpolate basic variables | |
var name = "monkeyman" | |
var person = <Person name={name} />; | |
// you can interpolate javascript expressions | |
var person = <Person name={window.isLoggedIn ? window.name : ''} />; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment