0.1.0 • Published 5 years ago
use-reading-progress v0.1.0
use-reading-progress
A simple React Hook for tracking the current reading progress of a page.
How to use
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.