const renderer = ({ hours, minutes, seconds }) => {
return <span>{hours}:{minutes}:{seconds}</span>;
}
<span ><CountDown date={Date.now() + 18000}
renderer={renderer}/></span>
<button onClick={onButtonClick} >Submit</button>
i have used here react-countdown npm package
Once we load the page the timer will be on and I need to get the remaining time when click on submit button