diff --git a/demo/components/FileInput.tsx b/demo/components/FileInput.tsx index 2f06cd8d..2192a826 100644 --- a/demo/components/FileInput.tsx +++ b/demo/components/FileInput.tsx @@ -23,12 +23,8 @@ const Button = styled.button` } `; -function GetUseRef(): RefObject { - return useRef(null); -} - const FileInput = props => { - const hiddenFileInput: RefObject = GetUseRef(); + const hiddenFileInput: RefObject = useRef(null); function handleClick() { if (hiddenFileInput && hiddenFileInput.current) {