Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
Created June 18, 2019 01:30
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 ryanseddon/fb34794b6e1b329a6105e29c4063495f to your computer and use it in GitHub Desktop.
Save ryanseddon/fb34794b6e1b329a6105e29c4063495f to your computer and use it in GitHub Desktop.
class Tabs extends React.Component {
render() {
return (
<TabsContainer vertical={true}>
{({
selectedItem,
focusedItem,
getTabProps,
getTabListProps,
getTabPanelProps
}) => (
// Spread props and use state properties in your render
)}
</TabsContainer>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment