Skip to content

Instantly share code, notes, and snippets.

@aaronksaunders
Created June 6, 2019 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronksaunders/80abee9e9202df320bb42d035cd04acb to your computer and use it in GitHub Desktop.
Save aaronksaunders/80abee9e9202df320bb42d035cd04acb to your computer and use it in GitHub Desktop.
Markdium-Ionic React (Beta) Tabs: Step By Step
// 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