A simple React Hook for tracking the current reading progress of a page.
Install:
yarn install
or
npm install
import useReadingProgress from "use-reading-progress";
...
const progress = useReadingProgress();
Then use the result to render the reading progress as you see fit.