import useKeyboardTimer from 'use-keyboard-timer';
const settings = {
timerInput: 'timer',
inspection: 'always',
timerUpdate: 'deciseconds',
timeToRelease: 'stackmat',
};
const { time, inspectionTime, state, isTiming, dnf, plusTwo } = useKeyboardTimer(settings);
return (
<div>
{`Time: ${time}
State: ${state}
Inspection: ${inspectionTime}
DNF: ${dnf}
Plus 2: ${plusTwo}`}
</div>
);