I use HashRouter in my react app and the landing page is single-page which use react-scrollchor component to scroll to some section with animation. Say I defined #service section in the landing page, when I click Service and the page scroll to the anchor and finally the URL turn to /#/service(should be /#service), the page is blank. And I leave the example page here
Hello,
I use HashRouter in my react app and the landing page is single-page which use
react-scrollchor
component to scroll to some section with animation. Say I defined#service
section in the landing page, when I clickService
and the page scroll to the anchor and finally the URL turn to/#/service
(should be/#service
), the page is blank. And I leave the example page hereI searched stackover and find https://github.com/rafrex/react-router-hash-link would work, and could you support HashRouter in scrollchor?
Thanks!