Created
June 19, 2018 11:05
-
-
Save DavidMellul/c65153c2548f6b5ce2cb8ba03a963a08 to your computer and use it in GitHub Desktop.
This file contains 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
<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