mirror of
https://github.com/mgerb/react-starter
synced 2026-01-10 09:02:49 +00:00
init
This commit is contained in:
0
app/components/Footer.js
Normal file
0
app/components/Footer.js
Normal file
18
app/components/Navbar.js
Normal file
18
app/components/Navbar.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user