Smarter active for react link.