Files
freeCodeCamp/common/app/app-stream.jsx
Berkeley Martinez bb37583c90 fix should be getChildRoutes
fix fromNodeCallback returns array of values from callback
fix remove require.ensure - needs to be tested
2015-07-23 15:49:01 -07:00

14 lines
340 B
JavaScript

import Rx from 'rx';
import { Router } from 'react-router';
import App from './App.jsx';
import childRoutes from './routes';
const router$ = Rx.Observable.fromNodeCallback(Router.run, Router);
const routes = Object.assign({ components: App }, childRoutes);
export default function app$(location) {
return router$(routes, location);
}