Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get this working in React? #24

Open
SaadBazaz opened this issue Nov 24, 2022 · 0 comments
Open

How to get this working in React? #24

SaadBazaz opened this issue Nov 24, 2022 · 0 comments

Comments

@SaadBazaz
Copy link

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


import '@github/file-attachment-element'

const myApp = () => {
  return (
      <file-attachment directory>
          <input type="file" multiple />
      </file-attachment>
  )
}

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant