Skip to content

Instantly share code, notes, and snippets.

View txm's full-sized avatar

Andrew McGregor txm

View GitHub Profile
'use strict';
let path = require('path');
let webpack = require('webpack');
let config = {
entry: [
'./src/react/index.jsx'
@txm
txm / app.jsx
Last active February 18, 2016 08:55
const mountNode = document.getElementById('app');
let data = {};
import routes from './routes.jsx';
ReactDOM.render(
<Provider store={store}>
<Router history={browserHistory}>
@txm
txm / app.jsx
Created February 17, 2016 15:16
'Could not find "store" in either the context or '
import routes from './routes.jsx';
ReactDOM.render(
<Provider store={store}>
<Router history={browserHistory}>
{routes(store)}
</Router>
</Provider>
Andy-MacBook:twitter-stream andy$ node run.js start
{}