Skip to content

Instantly share code, notes, and snippets.

@DavidMellul
Created June 19, 2018 11:05
Show Gist options
  • Save DavidMellul/c65153c2548f6b5ce2cb8ba03a963a08 to your computer and use it in GitHub Desktop.
Save DavidMellul/c65153c2548f6b5ce2cb8ba03a963a08 to your computer and use it in GitHub Desktop.
<div className="content">
{
tabs.map(
(tab, index) => <div key={index} className={index === active ? 'shown':'hidden'}>
{tab.component}
</div>
);
}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment