MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / handleClick

Function handleClick

upload-component/src/Upload/index.tsx:69–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 }
68
69 const handleClick = () => {
70 if (fileInput.current) {
71 fileInput.current.click()
72 }
73 }
74
75 const handleFileChange = (e: ChangeEvent<HTMLInputElement>) => {
76 const files = e.target.files

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected