Skip to content

A simple React Hook for tracking the reading progress of a page

License

Notifications You must be signed in to change notification settings

jamesmckenzie/use-reading-progress

Repository files navigation

Build Status

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.

About

A simple React Hook for tracking the reading progress of a page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published