This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
let path = require('path'); | |
let webpack = require('webpack'); | |
let config = { | |
entry: [ | |
'./src/react/index.jsx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mountNode = document.getElementById('app'); | |
let data = {}; | |
import routes from './routes.jsx'; | |
ReactDOM.render( | |
<Provider store={store}> | |
<Router history={browserHistory}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import routes from './routes.jsx'; | |
ReactDOM.render( | |
<Provider store={store}> | |
<Router history={browserHistory}> | |
{routes(store)} | |
</Router> | |
</Provider> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Andy-MacBook:twitter-stream andy$ node run.js start | |
{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rock |