📅  最后修改于: 2022-03-11 15:01:47.985000             🧑  作者: Mango
const App = () => {
const inputRef = useRef(null);
const [file, setFile] = useState(null);
return (
<>
{
setFile(e.target.files[0]);
}}
/>
>
);
};