Open anupamz1 opened 4 years ago
In the Header.js file router is not present so that the history object will also be not present. A very simple solution is to import react-router-dom and then use withRouter HOC at the time of export.
import {withRouter} from 'react-router-dom;
export default withRouter(Header);
@anupamz1 please ping me if it works or not
I am unable to get history object and modify Logout feature , i had used below method on Button click: