Detect React Route Change in Vanilla JavaScript

Wondering how would you listen to page change for the spa in a Virutal DOM which is routing through client-side routing via vanilla javascript.
Author Image

Raja Osama

I Describe Myself as a Polyglot ~ Tech Agnostic ~ Rockstar Software Engineer. I Specialise in Javascript-based tech stack to create fascinating applications.

I am also open for freelance work, and in-case you want to hire me, you can contact me at or