file-attachment-element icon indicating copy to clipboard operation
file-attachment-element copied to clipboard

How to get this working in React?

Open SaadBazaz opened this issue 3 years ago • 0 comments

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?

SaadBazaz avatar Nov 24 '22 17:11 SaadBazaz