import React from 'react'; import Comment from '../containers/Comment'; import LoadMore from './LoadMore'; class TabPane extends React.Component { state = { loadingState: '', }; loadMore = () => { this.setState({ loadingState: 'loading' }); this.props .loadMore() .then(() => { this.setState({ loadingState: 'success' }); }) .catch(() => { this.setState({ loadingState: 'error' }); }); }; render() { const { root, data, asset: { featuredComments, ...asset }, viewComment, } = this.props; return (