Last active
January 7, 2016 14:39
-
-
Save gor181/395bfeb8c2c006514572 to your computer and use it in GitHub Desktop.
JSBin: React 0.14.3 + Coffeescript
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
customers = ['CustomerA', 'CustomerB', 'CustomerC'] | |
{div} = React.DOM | |
App = React.createClass | |
render: -> | |
div {}, customers.map (c, i) -> div {key: i, className: ~~new Date()}, c | |
ReactDOM.render( | |
React.createElement(App, { | |
customers: customers | |
}), | |
document.getElementById('renderme') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment