app.tsx
import { withRouter } from 'react-router'
interface Props extends RouteComponentProps {
}
const App: React.FC<Props> = (props) => {
function onOpen() {
props.history.push("/")
}
}
const Singer = withRouter(App as any);
export default Singer;