reactJS cheatsheet

Displaying data

Curly braces let you escape back into JavaScript so that you can embed some variable from your code and display it to the user. For example, this will display user.name
return ( <h1> {user.name} <\/h1> );