initial react app(WIP)
This commit is contained in:
@@ -2,14 +2,17 @@ import BrowserHistory from 'react-router/lib/BrowserHistory';
|
||||
import debugFactory from 'debug';
|
||||
import { Cat } from 'thundercats';
|
||||
|
||||
import AppFactory from '../common/app/appFactory';
|
||||
import app$ from '../common/app/app$.jsx';
|
||||
|
||||
const debug = debugFactory('fcc:client');
|
||||
const DOMContianer = document.getElemenetById('#fCC');
|
||||
const fcc = new Cat();
|
||||
|
||||
// returns an observable
|
||||
fcc.render(AppFactory(BrowserHistory), DOMContianer)
|
||||
app$(BrowserHistory)
|
||||
.flatMap(app => {
|
||||
return fcc.render(app, DOMContianer);
|
||||
})
|
||||
.subscribe(
|
||||
function() {
|
||||
debug('react rendered');
|
||||
|
Reference in New Issue
Block a user