codeforboston / codeforboston/mattapan-mapping

Code Design: Use Link component anchor tags

Open
#82 1 comment 0 reactions 1 assignee Claimed by @shalarewicz View on GitHub
enhancement
Dominant language
TypeScript
Stars
5
Forks
16
PR merge metrics
No merged PRs in 30d

Description

It seems... that the page is reloading whenever a link in the header tag is clicked?? SO says to use `Link` component as provided from react-router and this will not cause page-refresh

https://stackoverflow.com/questions/33964566/react-router-is-refreshing-page-when-i-follow-a-route-using-a-tag

Anchor tags right now are mainly in the header and the LandingCards on LandingPage

It appears Link component has been created but it is a styled `a` tag in `HeaderAtoms`. Change this to use `Link` component from react-router (and see if react doesn't do full-page refresh)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.