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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.