 
   render: ->
     folder = if @state.foldOpen
-        React.DOM.span {className: 'entity-folder open'}, "[ - ] "
+        span {className: 'entity-folder open'}, "[ - ] "
       else
-        React.DOM.span {className: 'entity-folder closed'}, "[ + ] "
+        span {className: 'entity-folder closed'}, "[ + ] "
 
     nameLabel = "Entity #{@props.eid}"
     @props.components.forEach (comp,cid) =>
       if comp.get('type') == 'name'
         nameLabel = comp.get('name') + " (#{@props.eid})"
 
-    header = React.DOM.div {className: "entity-header", onClick: @headerClicked},
+    header = div {className: "entity-header", onClick: @headerClicked},
       folder
       nameLabel
 

    comp = @props.component

    folder = if @state.foldOpen
        React.DOM.span {className: 'component-folder open'}, "[ - ] "
      else
        React.DOM.span {className: 'component-folder closed'}, "[ + ] "

    header = React.DOM.div {className: "component-header", onClick: @headerClicked},
      folder
      React.DOM.span {className: 'component-type'},
        comp.get('type')
      " "
      React.DOM.span {className: 'component-cid'},
        comp.get('cid')

    if @state.foldOpen

      List()


    div {className: 'entity'},
      header,
      componentViews

