Skip to content

Instantly share code, notes, and snippets.

@gor181
Last active January 7, 2016 14:39
Show Gist options
  • Save gor181/395bfeb8c2c006514572 to your computer and use it in GitHub Desktop.
Save gor181/395bfeb8c2c006514572 to your computer and use it in GitHub Desktop.
JSBin: React 0.14.3 + Coffeescript
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