The following route works great and displays the AdministratePage component:
Howe
Another way of solving this problem is to add the following tag to your index.html
page:
<base href="/">
Slash looks useless here
filename: '/bundle.js'
Also try to define publicPath
output: {
filename: 'bundle.js',
path: path.resolve('dist'),
publicPath: '/',
},
https://webpack.js.org/guides/public-path/
React-router v4 now allows you to use regexes to match params
<Route path="/admin/all | /admin" component={AdministratePage} />
It uses path-to-regexp
path-to-regexp