# @cjsx React.DOM $ = require('jquery') Backbone = require('backbone') React = require('react') EditTag = require('./edit_tag') ModalTrigger = require('react-bootstrap/lib/ModalTrigger') module.exports = React.createClass displayName: 'Tags' componentDidMount: -> console.log '[views/tags] component did mount' @props.tags.on 'sync', @forceUpdate.bind(@, null) componentWillReceiveProps: (nextProps)-> console.log '[views/tags] component will receive props' nextProps.tags.on 'sync', @forceUpdate.bind(@, null) render: ->