var React = require('react'); module.exports = React.createClass({ render: function() { var classes = 'category-header' + (this.props.currentItem ? 'visible' : ''); var itemLabel = this.props.currentItem ? this.props.currentItem.label : ''; return (