mirror of
https://github.com/rreusser/rreusser.github.io.git
synced 2026-02-01 17:20:38 +00:00
29 lines
636 B
JavaScript
29 lines
636 B
JavaScript
const React = require('react');
|
|
const classNames = require('classnames');
|
|
|
|
class Menu extends React.Component {
|
|
constructor (props) {
|
|
super(props);
|
|
this.state = {
|
|
expanded: false
|
|
};
|
|
this.handleClick = this.handleClick.bind(this);
|
|
}
|
|
|
|
handleClick () {
|
|
this.setState({expanded: !this.state.expanded});
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<nav className="menu">
|
|
<a className="menu__item" href="/">rreusser.github.io</a>
|
|
<a className="menu__item" href="/sketches/">sketches</a>
|
|
<a className="menu__item" href="/projects/">projects</a>
|
|
</nav>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Menu;
|