1 min read

Learn how to Add a Scroll To Top Button In Next Tailwind App

Install package by typing

npm i reading-time

in terminal.After package is installed successfully import it in the required page

 import readingTime from "reading-time";

And assign reading time in a variable

   readingTime: readingTime(content).text,

And use it in JSX like this.

     <div>{readingTime}</div>

Happy To Share This Short Simple Component Snippet With You. Will Come Soon With Another Joy Piece. Until then Hope a Passionate Chase After Codes. With Love💜 Nimble