react router anchor href not working code example Example: react router Link does work import { Link } from 'react-router-dom';