github / github/file-attachment-element

How to get this working in React?

Aperta
#24 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
134
Fork
25
Merge medio
1g 15h
PR unite (30g)
6

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the supplied import and JSX in a React app, following the repository's installation instructions. Compare the rendered result with the browser-default file input shown in the screenshot; done means the file-attachment element works as intended in React or the compatibility limitation is documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend, web-dev
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.