i want to add ref to styled component div.
My code is like below,
const DragAndDrop: React.FC<any> = props => {
const div_ref= React.createRef();
return (
<Zone ref={div_ref}/>
);
}
But this gives me error
Type RefObject is not assignable to type {instance: htmlDivElement || null} => void || refObject|| null || undefined
could someone help me fix this. thanks.