Write a custom hook that sets the current progress: React hooks – Javascript
I am having a progress bar which on click starts its progress from 60 to all the way upto 100. I am able to achieve this using settinterval and setting the corresponding state. import React, { useState, useRef } from…