     document.addEventListener 'mousedown', @handleEvent
     document.addEventListener 'focus', @handleEvent, true
 
-    React.render @renderAttachment(), @root, =>
+    ReactDOM.render @renderAttachment(), @root, =>
       @tether = new Tether
         classPrefix: 'm'
         element: @root

#
Tether = require 'tether'
React = require 'react'
_ = require './prelude'
$ = React.createElement


      @tether.position()

  componentDidUpdate: =>
    ReactDOM.render @renderAttachment(), @root, => @tether?.position()

  componentWillUnmount: =>
    ReactDOM.unmountComponentAtNode @root

    @tether.destroy?()
    document.body.removeChild @root
