I’m using react-number-format v5.4.0 with TypeScript for rendering a numeric input field. However, I’m getting the error:
JSX element type ‘NumericFormat’ does not have any construct or call signatures.
which is highlighted under NumericInput
in VsCode.
Here is a reproducible example:
import NumericFormat from 'react-number-format';
export default function CurrencyInput(){
return (
<NumericFormat />
);
}
How do I fix this error? It seems the error has something to do