Single page application: How to prevent page reload when browser back button is clicked
I have a audio player in the base html file and I want it to continue playing when I navigate to other pages(home and playlist). It is working. But when I click the browser back button from the home or playlist page, the audio stops because the page reloads
Note: I dont know how to post my codes here. I keep getting error
so as per my knowlegde your website is reloading whenever you are moving to new page . you can use Link instead of button or anker tag to traverse , Link tag is native to react library which will not reload the website insead it will only update the DOM
ex: