I need help ,I m new in react how can I use react hooks to take a time on stopwatch and put it into database using axios I use react-stopwatch npm https://www.npmjs.com/package/react-stopwatch The code
import * as React from 'react';
import ReactStopwatch from 'react-stopwatch';
const Stopwatch = () => (
<ReactStopwatch
seconds={0}
minutes={0}
hours={0}
limit="01:00:10"
onChange={({ hours, minutes, seconds }) => {
// do something
}}
onCallback={() => console.log('Finish')}
render={({ formatted, hours, minutes, seconds }) => {
return (
<div>
<p>
Formatted: { formatted }
</p>
<p>
Hours: { hours }
</p>
<p>
Minutes: { minutes }
</p>
<p>
Seconds: { seconds }
</p>
</div>
);
}}
/>
);
export default Stopwatch;