importar com o Router
import { withRouter } from 'react-router-dom';
Run time Terror
import { withRouter } from 'react-router-dom';