Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80635 views
1
/**
2
* @providesModule HeaderLinks
3
* @jsx React.DOM
4
*/
5
6
var HeaderLinks = React.createClass({
7
links: [
8
{section: 'docs', href: '/flux/docs/overview.html#content', text: 'docs'},
9
{section: 'support', href: '/flux/support.html', text: 'support'},
10
{section: 'github', href: 'http://github.com/facebook/flux', text: 'github'},
11
],
12
13
render: function() {
14
return (
15
<ul className="nav-site">
16
{this.links.map(function(link) {
17
return (
18
<li key={link.section}>
19
<a
20
href={link.href}
21
className={link.section === this.props.section ? 'active' : ''}>
22
{link.text}
23
</a>
24
</li>
25
);
26
}, this)}
27
</ul>
28
);
29
}
30
});
31
32
module.exports = HeaderLinks;
33
34