mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
too many changes - load posts now
This commit is contained in:
@@ -16,7 +16,7 @@ import Index from './pages/Index';
|
||||
class Main extends React.Component{
|
||||
render(){
|
||||
return(
|
||||
<div>{React.cloneElement(this.props.children, this.props)}</div>
|
||||
<div>{React.cloneElement(this.props.children, this.props)}</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -40,8 +40,8 @@ ReactDOM.render((
|
||||
<Router history={history}>
|
||||
<Route path="/" component={App}>
|
||||
<IndexRoute component={Index}/>
|
||||
<Route path="/:page" component={Index}/>
|
||||
<Route path="/:page(/:category)(/:post)" component={Index}/>
|
||||
</Route>
|
||||
</Router>
|
||||
</Provider>
|
||||
),document.getElementById('app'));
|
||||
),document.getElementById('app'));
|
||||
|
||||
Reference in New Issue
Block a user