Skip to content

Instantly share code, notes, and snippets.

@aaronksaunders
Created June 6, 2019 15:01
Show Gist options
  • Save aaronksaunders/7ee3d75820b3fe88c38042587a2a7a7f to your computer and use it in GitHub Desktop.
Save aaronksaunders/7ee3d75820b3fe88c38042587a2a7a7f 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