github / github/file-attachment-element
How to get this working in React?
- Dominant language
- TypeScript
- Stars
- 134
- Forks
- 25
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 6
Description
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:

How do I get this to work with React?
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100