Created
June 3, 2014 09:15
-
-
Save augustl/374d67d56288062b9e7b 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
render: function () { | |
var self = this; | |
var state = this.state; | |
var tabIdx = 0; | |
return div( | |
null, | |
ul({className: "nav nav-tabs", key: "tabs"}, state.tabs.map(function (tab) { | |
tabIdx = tabIdx + 1; | |
return Tab({ | |
key: "tab-" + tabIdx, | |
tab: tab, | |
isActive: state.currentTab === tab, | |
onTabClick: self.handleTabClicked | |
}); | |
})) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment