I get two errors when I try to set ref in react component.
import React from "react";
const Input = React.forwardRef((props, ref) => {
return <input ref={ref} {...props}/>;
});
export default Input;
Component definition is missing display name eslint(react/display-name).
"Type 'ForwardedRef<unknown>' is not assignable to type 'LegacyRef<HTMLInputElement>'.
Type 'MutableRefObject<unknown>' is not assignable to type 'LegacyRef<HTMLInputElement>'."
Can you help me?