all files / modules/ IndexLink.js

100% Statements 33/33
100% Branches 20/20
100% Functions 7/7
100% Lines 3/3
8 statements, 1 function, 9 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                15×              
import React, { Component } from 'react'
import Link from './Link'
 
/**
 * An <IndexLink> is used to link to an <IndexRoute>.
 */
class IndexLink extends Component {
 
  render() {
    return <Link {...this.props} onlyActiveOnIndex={true} />
  }
 
}
 
export default IndexLink