import React from 'react'; import ReactDOM from 'react-dom'; // import the countdown hook here import { useCountdown } from 'cubetiq-react-use-countdown'; const App = () => { const { timeleft, start } = useCountdown({ step: 1000, }); return (

Time left: {timeleft}

); }; ReactDOM.render(, document.querySelector('#root'));