         React.createElement PropRow, {key: key, name: key, value: value}
       ).toList()
 
-      props = React.DOM.table {className: 'component-props'},
-        React.DOM.tbody null,
+      props = table {className: 'component-props'},
+        tbody null,
         rows
 
-      React.DOM.div {className: 'component'},
+      div {className: 'component'},
         header,
         props
 
     else
-      React.DOM.div {className: 'component'},
+      div {className: 'component'},
         header
 
 PropRow = React.createClass
   displayName: 'PropRow'
   render: ->
-    React.DOM.tr null,
-      React.DOM.td {className:'prop-name'}, @props.name
+    tr null,
+      td {className:'prop-name'}, @props.name
       React.createElement PropValueCell, {value: @props.value}
 
 PropValueCell = React.createClass
   displayName: 'PropValueCell'
   render: ->
     val = if @props.value? then @props.value.toString() else "?"
-    React.DOM.td {className:'prop-value'}, val
+    td {className:'prop-value'}, val
     
 module.exports = InspectorUI
 

List = Immutable.List
Set = Immutable.Set
imm = Immutable.fromJS

ComponentSearchBox = require './component_search_box'



  render: ->
    folder = if @state.foldOpen
        span {className: 'inspector-folder open'}, "- "
      else
        span {className: 'inspector-folder closed'}, "+ "

    header = div {className: "inspector-header", onClick: @headerClicked}, folder, "Entity Inspector"

    views = []
    if @state.foldOpen
      countComps = (sum,comps) -> sum + comps.size
      views.push(
        div {className: 'entitiesSummary'},
          "#{@props.entities.size} entities, #{@props.entities.valueSeq().reduce(countComps, 0)} components"
      )
      views.push(
        div {className: 'entities'},
          @props.entities.map((components,eid) =>
            React.createElement Entity, {eid: eid, components: components, key: eid, inspectorConfig: @props.inspectorConfig}
          ).toList()
      )

    if @state.showSearchBox
      views.push(
        React.createElement ComponentSearchBox, {key: 'component-search-box', entityStore: @props.entityStore}
      )

    div {className: 'component-inspector'},
      header,
      views

