all files / components/NavBar/ NavBar.js

100% Statements 45/45
100% Branches 31/31
100% Functions 10/10
100% Lines 5/5
4 statements, 13 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                      
import React from 'react'
import { Link } from 'react-router'
import styles from './styles.css'
 
export default class NavBar extends React.Component {
  render () {
    return (
      <nav className={styles.nav}>
        <Link to="/home" activeClassName={styles.navActive}>Home</Link>
        <Link to="/about" activeClassName={styles.navActive}>About</Link>
      </nav>
    )
  }
}