score:0

const inputRef = useRef();

useEffect(() => {
  folderInput.current.setAttribute('directory', '');
 folderInput.current.setAttribute('webkitdirectory', '');
}, [folderInput]);


  return <Input ref={inputRef} /> ;

Related Query

More Query from same tag