title: How to pass flux to react-router 1.0.0
body: <p><a href="http://fluxxor.com/examples/react-router.html#/" rel="nofollow">http://fluxxor.com/examples/react-router.html#/</a></p>
  
  <p>This shows how to do it for the old version of React-router.</p>
  
  <p>Does anyone know how to pass flux as a prop to your top-level component in react-router 1.0.0?</p>
  
  <p>I saw somewhere in the docs that in react-router 1.0.0 routes can just be described as objects and this means you can pass in arbitary props. However this isn't working for me:</p>
  
  <pre><code> routes =
        path: "/"
        flux: flux
        component: App
        childRoutes: [
          {path: "/path/to/path", component: Comp, flux: flux}
        ]
  
  
      React.render(&lt;Router routes={routes} /&gt;, document.getElementById("app"))  
  </code></pre>
  
  <p>No sign of flux as a prop on App.</p>
  
  <p>The syntax is Coffee Script but basically routes is an object, </p>