title: react-router Link doesn't render href attribute with server side rendering?
body: <p>I have a expressjs  app with the following code, what i am trying to do is to render a react component named <strong>Hello</strong> with the request to "/". Inside Hello component i am using two react-router Links, but these two Links doesn't render the href attributes.</p>
  
  <p>I am using here react-router 2</p>
  
  <p><strong>Server.js file</strong></p>
  
  <pre><code>var express = require("express");
  var app = express();
  var React = require("react");
  var ReactDOM = require("react-dom/server");
  
  var Hello = React.createFactory(require("./js/components/Hello"));
  // The above is a reference to pre-compiled Hello.jsx to Hello.js using babel
  
  app.set("view engine", "ejs");
  app.set("views", "./views");
  
  app.use(express.static("./public"));
  
  app.get("/", function (req, res) {
      res.render("Home",{data:ReactDOM.renderToString(Hello())});
  });
  
  
  app.listen(app.get("port"), function () {
      console.log("server started on port " + app.get("port"));
  });
  </code></pre>
  
  <p><strong>Hello.jsx File</strong></p>
  
  <pre><code>var React = require("react");
  var Link = require("react-router/lib/Link");
  
  var Hello = React.createClass({
     callMe:function(){
         alert("Hurray");
     },
     componentWillMount:function(){
          console.log("componentWillMount fired");
     },
     render:function(){
       //  console.log(this);
         return(
             &lt;div&gt;
                  &lt;h2 onClick={this.callMe}&gt;Hello Boom Boom {this.props.name}&lt;/h2&gt;
                  &lt;Link to="/"&gt;Home&lt;/Link&gt;
                  &lt;Link to="/about"&gt;About&lt;/Link&gt;
                  // above two Links rendering anchor tags without href attribute
             &lt;/div&gt;
         );
     }
  });
  
  
  module.exports = Hello;
  </code></pre>
  
  <p><strong>Home.ejs File</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h2&gt;Welcome to home page&lt;/h2&gt;
      &lt;div id="container"&gt;
          &lt;%- data %&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/iOszp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iOszp.png" alt="in browser output"></a></p>