import React from 'react';
import { Link } from 'react-router-dom';

import navlinkStyle from './NavLink.css';

class NavLink extends React.Component {
    render() {
        return (
            <li className={navlinkStyle.navItem}>
                <Link to={this.props.to} style={{ color: 'inherit'}}>{this.props.children}</Link>
            </li>
        );
    }
}

export default NavLink;
