Cannot read property '__reactAutoBindPairs' of undefined - React.js
<p>I'm trying to create a simple component in React with Coffeescript and Node. However, it keeps throwing back this error:</p>

<pre><code>Cannot read property '__reactAutoBindPairs' of undefined
</code></pre>

<p>Here's my code:</p>

<p>index.coffee:</p>

<pre><code>express = require('express')
JSX     = require('node-jsx').install()
React   = require('react')
TestApp = require('../components/Test.react')
router  = express.Router()

# home page
router.get '/', (req, res, next) -&gt;
  React.renderComponent (TestApp {}), document.getElementById('test')
  res.render 'index', title: 'Example'

module.exports = router
</code></pre>

<p>Test.react.coffee:</p>

<pre><code>React = require('react')

TestApp = React.createClass
    render: -&gt;
      p "Hello!"

module.exports = TestApp
</code></pre>

<p>index.jade</p>

<pre><code>extends layout

block content
  h1= title
  #test 
  p Welcome to #{title}
</code></pre>

<p>Any help would be appreciated. Thanks!</p>