This component will count down the time remaining to complete the online placement test.
yarn add @berlitz/timer
Argument | Type | Required | Default | descriptions |
---|---|---|---|---|
seconds | number | Yes | null | sets the initial state of time remaining |
onTimerComplete | func | No | () => {} | this func is called when the time lapse |
<Timer onTimerComplete={() => console.log('Done!')} seconds={60} />