Created
June 6, 2019 15:02
-
-
Save aaronksaunders/80abee9e9202df320bb42d035cd04acb to your computer and use it in GitHub Desktop.
Markdium-Ionic React (Beta) Tabs: Step By Step
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: Tab1Detail.tsx | |
import { withRouter } from "react-router"; // <== NEW | |
const Tab1Detail: React.SFC = (props) => { // <== NEW | |
return ( | |
<> | |
props.history.replace("/tab1")} // <== NEW | |
goBack={() => {}} | |
/> | |
Tab One Detail | |
); | |
}; | |
export default withRouter(Tab1Detail); // <== NEW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment