diff --git a/build/webpack.config.js b/build/webpack.config.js index 6afc3d4afe..5b8d7aa3fc 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -35,7 +35,7 @@ const webpackHotMiddlewareEntry = `webpack-hot-middleware/client?${_.map({ }, (val, key) => `&${key}=${val}`).join('')}` const APP_ENTRY = [ - paths.docsSrc('DocsApp.js'), + paths.docsSrc('index.js'), ] webpackConfig.entry = __DEV__ ? { diff --git a/docs/app/404.html b/docs/app/404.html new file mode 100644 index 0000000000..5be87dbc1e --- /dev/null +++ b/docs/app/404.html @@ -0,0 +1,11 @@ + + +
+ + + + + + diff --git a/docs/app/App.js b/docs/app/App.js new file mode 100644 index 0000000000..d193b88b58 --- /dev/null +++ b/docs/app/App.js @@ -0,0 +1,12 @@ +import React, { Component } from 'react' +import { Router, browserHistory } from 'react-router' + +import routes from './routes' + +export default class App extends Component { + render() { + return ( +{JSON.stringify(this.context.router, null, 2)}+
{JSON.stringify(location, null, 2)}+
{JSON.stringify(params, null, 2)}+
{JSON.stringify(route, null, 2)}+
{JSON.stringify(routeParams, null, 2)}+