import React, { Component } from 'react'; import { connect } from "react-redux"; import WithHeaderFooter from '../../shared/header_footer.hoc'; import WithSidebar from '../../shared/sidebar.hoc'; import { COMMON_REQUEST, COMMON_CANCEL } from '../../utils/constants'; import HttpService from '../../services/http.service'; class SuperAdminContainer extends Component { componentDidMount() { } startRequest = () => { this.props.dispatch({ type: COMMON_REQUEST }); let params = { url: 'https://reqres.in/api/users?page=2' } HttpService.fetch(params).then(res=>{ console.log(res); }) } stopRequest = () => { // this.props.dispatch({ // type: COMMON_CANCEL // }) HttpService.cancelRequest(); } render() { return (