Created
June 6, 2019 15:00
-
-
Save aaronksaunders/4fee21c5a5b5e0f41901350f466a8707 to your computer and use it in GitHub Desktop.
Markdium-Ionic React (Beta) Tabs: Step By Step
This file contains hidden or 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