This file contains 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 routes = ( | |
<Route component={ App } path="/"> | |
<Route component={ Child } path="child/:id"> | |
<Route component={ GrandChild } path="grandchild" /> | |
<IndexRoute component={ IndexGrandChild } /> | |
</Route> | |
</Route> | |
); | |
This file contains 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
/* 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") |
This file contains 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 React from 'react'; | |
import { RouteHandler } from 'react-router'; | |
let AppHandler = React.createClass( | |
render() { | |
return ( | |
<div> | |
... | |
<div> | |
<RouteHandler /> |