example snippet - React.createClass