I'm trying to create routes in my provider but it doesn't work out for nested levels.
Until one level it is working fine.
Find the code snippet below
render(
<Provider store={store}>
<Router history={browserHistory}>
<Route path="/" component={PageTemplate}>
<Route path="/login" component={Login}/>
<Route path="/secure" component={BodyTemplate}>
<Route path="page1" component={Page1}/>
<Route path="page2" component={Page2}/>
<Route path="page3" component={Page3}/>
</Route>
<Route path="*" component={InvalidPage}/>
</Route>
</Router>
</Provider>, document.getElementById('app'))
If I open the URL localhost:3000/login it is working fine
but if I give the URL localhost:3000/secure/page1
I see the error in the browser console as below
bundle.min.js:1 Uncaught SyntaxError: Unexpected token <
Kindly help me if there is anything wrong in my router configuration.
/page1,/page2,/page3for thepathprop.