import React, { Fragment } from 'react'; import { NavLink } from 'react-router-dom'; import PropTypes from 'prop-types'; import Logo from './logo'; import './header.css'; /** * Render the main header using a responsive design */ class Header extends React.Component { constructor(props) { super(props); this.state = {collapseMenu: true}; this.handleClick = this.handleClick.bind(this); } handleClick() { this.setState(state => ({ collapseMenu: !state.collapseMenu })); } render() { return (
); } } Header.propTypes = { user: PropTypes.shape({ username: PropTypes.string }) } export default Header;