file-attachment-element
file-attachment-element copied to clipboard
How to get this working in React?
Hey, I followed the installation instructions, and tried the following code:
import '@github/file-attachment-element'
const myApp = () => {
return (
<file-attachment directory>
<input type="file" multiple />
</file-attachment>
)
}
export default myApp;
It shows the browser's default file input:

How do I get this to work with React?