Currently the menu is using a tags for its links. I forgot that Gatsby has its own Link component which needs to be used, otherwise the links won't work as expected. As well, Link has a special activeClassName/activeStyle property which could be used, eliminating the need for the custom logic in Menu.
Currently the menu is using
a
tags for its links. I forgot that Gatsby has its ownLink
component which needs to be used, otherwise the links won't work as expected. As well,Link
has a specialactiveClassName
/activeStyle
property which could be used, eliminating the need for the custom logic inMenu
.