initial react app(WIP)

This commit is contained in:
Berkeley Martinez
2015-06-29 09:50:25 -07:00
parent 05c6dcdf0f
commit a5e7009a57
19 changed files with 46917 additions and 68 deletions

View File

@@ -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');