Describe the bug
Unable to import React Countdown, I notice that the original source code mix PropTypes with TS and is a React Class component.
To Reproduce
Steps to reproduce the behavior:
- Create a project from zero
- Install the
react-countdown library.
- Create a basic component, as the following:
import Countdown, { CountdownRenderProps } from 'react-countdown';
function timerRenderer ({ completed, seconds, minutes }: CountdownRenderProps){
if (completed) {
return <span>00:00</span>;
} else {
return <span>{minutes}:{seconds}</span>;
}
}
export default function Timers() {
return <Countdown date={Date.now() + 70000} renderer={timerRenderer} />
}
- The dev tools display the following error:

- The compiled code is the following:

Expected behavior
Be able to import react-countdown component.
Desktop (please complete the following information):
- OS: OS X 10.15.17
- Browser: Firefox 87.0
- Node Version: 14.8.0
- WMR Version: 1.2.0
Describe the bug
Unable to import React Countdown, I notice that the original source code mix PropTypes with TS and is a React Class component.
To Reproduce
Steps to reproduce the behavior:
react-countdownlibrary.Expected behavior
Be able to import react-countdown component.
Desktop (please complete the following information):