title: Unexpected token < error in react router component
body: <p>I'm trying to write router component for my react app. I'm create new react class and define some routes in componentDidMount method.
  This is full method</p>
  
  <pre><code>componentDidMount: function () {
  
      var me = this;
  
      router.get('/', function(req){
          me.setState({
              component: &lt;MainPage /&gt;
          });
      });
  
      router.get('/realty', function(req){
          me.setState({
              component: &lt;RealtyPage /&gt;
          });
      });
  
      router.get('/realty/:id', function(req){
          me.setState({
              component: &lt;RealtyPage id={req.params.id} /&gt;
          });
      });
  
  },
  </code></pre>
  
  <p>When I'm go to '/' or '/realty' all works. But, when I'm go  to the 'realty/new' I've got error Uncaught SyntaxError: Unexpected token &lt; in app.js:1. But Chrome debugger display that error in my index.html and I even can't debug this in browser. This error happens every time, when I go to the route with '/'. I.m trying to use other client-side routers, like page.js, rlite, grapnel, but all still the same. Maybe someone have any idea about this error?</p>
  
  <p>UPD: This is fuul code of router component. Now it use page.js fo routing and I see the same error</p>
  
  <pre><code>var React = require('react');
  var page = require('page');
  
  
  var MainPage = require('../components/MainPage');
  var RealtyPage = require('../components/RealtyPage');
  
  
  var Router = React.createClass({
  
      getInitialState: function(){
          return {
              component: &lt;RealtyPage /&gt;
          }
      },
  
      componentDidMount: function () {
  
          var me = this;
  
          page('/', function (ctx) {
              me.setState({
                  component: &lt;MainPage /&gt;
              });
          });
  
          page('/realty', function (ctx) {
              me.setState({
                  component: &lt;RealtyPage /&gt;
              });
          });
  
          page.start();
  
      },
  
      render: function(){
          return this.state.component
      }
  });
  
  module.exports = Router;
  </code></pre>