1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-10 09:02:49 +00:00
This commit is contained in:
2016-12-29 15:50:14 -06:00
committed by Mitchell Gerber
commit 0afda65c45
22 changed files with 788 additions and 0 deletions

0
app/components/Footer.js Normal file
View File

18
app/components/Navbar.js Normal file
View File

@@ -0,0 +1,18 @@
import React from 'react';
import { Link } from 'react-router';
export default class Navbar extends React.Component {
render() {
return (
<div className="Navbar">
<Link to="/" className="Navbar__item" onlyActiveOnIndex activeClassName="active">Home</Link>
<Link to="/new" className="Navbar__item" activeClassName="active">New</Link>
</div>
);
}
}
Navbar.propTypes = {
children: React.PropTypes.node,
};