github / github/file-attachment-element

How to get this working in React?

Offen
#24 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
134
Forks
25
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
6

Beschreibung

Hey,
I followed the installation instructions, and tried the following code:

```

import '@github/file-attachment-element'

const myApp = () => {
return (



)
}

export default myApp;
```

It shows the browser's default file input:
Screenshot 2022-11-24 at 10 31 45 PM

How do I get this to work with React?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.