render() {
const {
results, currentPage, resultsPerPage, setCurrentPage
} = this.props;
....
....
if (this.props.loading) {
return (<div className="loading-spinner">...loading</div>);
}
}
$(el).parent() = el.parentNode
$(el).children() = el.children
$(el).find(selector).length = el.querySelector(selector) !== null
$(el).next() = el.nextElementSibling