How to make a reading progress top bar with both React and Vue

In this article, I share some code snippets to create a reading progress top bar like the one I have in my blog for both React and Vue.