1
0
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:
2016-08-24 00:29:00 -05:00
parent 24ef17ac5b
commit 7b48c79180
26 changed files with 354 additions and 272 deletions

View File

@@ -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'));