Skip to content

Commit

Permalink
Flux - 7 - In App Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Jul 5, 2015
1 parent 3403ae6 commit 92a5b98
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions imgur-client/src/components/header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var React = require('react');
var Router = require('react-router');
var Link = Router.Link;

module.exports = React.createClass({
render: function() {
return <nav className="navbar navbar-default header">
<div className="container-fluid">
<Link to="/" className="navbar-brand">
Imgur Browser
</Link>
<ul className="nav navbar-nav navbar-right">
<li><a>Topic #1</a></li>
</ul>
</div>
</nav>
}
});
3 changes: 2 additions & 1 deletion imgur-client/src/components/main.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
var React = require('react');
var Header = require('./header');

module.exports = React.createClass({
render: function() {
return <div>
I'm a header.
<Header />
{this.props.children}
</div>
}
Expand Down

0 comments on commit 92a5b98

Please sign in to comment.