+ {!this.props.apiKey || !this.props.newsUrl ? (
+
+ ) : (
+ <>
+
+ {isLoading ? (
+
+ ) : hasError ? (
+ <>
+
+ {errorMesage}
+
+ >
+ ) : _renderNews.length > 0 ? (
+ <>
+
+ {_renderNews}
+
+
+ {this.state.totalPages > 1 && (
+ <>
+
{
+ this._getNews(
+ this.props.newsUrl,
+ this.props.apiKey,
+ page
+ );
+ }}
+ />
+ >
+ )}
+
+ >
+ ) : (
+
+ )}
+ >
+ )}
+
+