Skip to content

Instantly share code, notes, and snippets.

@jmfurlott
jmfurlott / router.js
Last active September 28, 2015 19:41
IndexRoute issues with react-router
const routes = (
<Route component={ App } path="/">
<Route component={ Child } path="child/:id">
<Route component={ GrandChild } path="grandchild" />
<IndexRoute component={ IndexGrandChild } />
</Route>
</Route>
);
@jmfurlott
jmfurlott / webpack.config.js
Created March 24, 2015 18:23
Hot loader issue
/* global process */
/* global __dirname */
'use strict';
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var webpack = require('webpack');
var environment = {
ENV: JSON.stringify(process.env.ENV || "local"),
URI: JSON.stringify(process.env.URI || "http://production.com")
@jmfurlott
jmfurlott / AppHandler.js
Created March 24, 2015 06:08
react-router context issue
import React from 'react';
import { RouteHandler } from 'react-router';
let AppHandler = React.createClass(
render() {
return (
<div>
...
<div>
<RouteHandler />