30 lines
601 B
JavaScript
30 lines
601 B
JavaScript
import React, {Component} from 'react';
|
|
import axios from 'axios';
|
|
import {About, Blog, Home, Wrapper} from '../components';
|
|
|
|
export default class MainContainer extends Component {
|
|
|
|
constructor() {
|
|
super();
|
|
|
|
this.state = {
|
|
isLoadingBlog: true,
|
|
isLoadingAbout: true,
|
|
}
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div>
|
|
<Home/>
|
|
<Wrapper>
|
|
<About isLoading={this.state.isLoadingAbout}
|
|
about={this.state.about}/>
|
|
<Blog isLoading={this.state.isLoadingBlog}
|
|
posts={this.state.posts}/>
|
|
</Wrapper>
|
|
</div>
|
|
)
|
|
}
|
|
}
|