FormidableLabs / redux-little-router

A tiny router for Redux that lets the URL do the talking.
MIT License
1.04k stars 114 forks source link

Add active link API #204

Closed tptee closed 7 years ago

tptee commented 7 years ago

<Link> now takes activeProps to override its props when active:

<Link
  href='/wat'
  className='normal-link' 
  activeProps={{ className: 'active-link' }}
>
  Wat
</Link>
codecov[bot] commented 7 years ago

Codecov Report

Merging #204 into master will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #204      +/-   ##
=========================================
+ Coverage   98.29%   98.3%   +0.01%     
=========================================
  Files          19      19              
  Lines         234     236       +2     
=========================================
+ Hits          230     232       +2     
  Misses          4       4
Impacted Files Coverage Δ
src/components/link.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 933efe9...fe65852. Read the comment docs.