it\'s my first project that use react
,react-router
,react-hot-loader
,webpack-dev-server
and webpack
. when I chang
I know this is an old question, but someone might find this useful. I tried a lot of stuff and what finally worked for me is:
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, Link } from 'react-router'
import App from './index/app'
import About from './index/about'
import Inbox from './index/inbox'
class Routers extends React.Component {
private routes = (
);
render() {
return (
{this.routes}
);
}
}