github / github/file-attachment-element

How to get this working in React?

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
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:
Screenshot 2022-11-24 at 10 31 45 PM

How do I get this to work with React?

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.