fix fromNodeCallback returns array of values from callback fix remove require.ensure - needs to be tested
14 lines
340 B
JavaScript
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);
|
|
}
|