App.jsx 509 B

12345678910111213141516171819
  1. /* eslint-disable react/react-in-jsx-scope */
  2. import Uppy from '@uppy/core'
  3. // eslint-disable-next-line no-unused-vars
  4. import React from 'react'
  5. import { Dashboard } from '@uppy/react'
  6. import '@uppy/core/dist/style.css'
  7. import '@uppy/dashboard/dist/style.css'
  8. export default App
  9. function App () {
  10. // Ideally we test with the `useUppy` hook,
  11. // as that's how it should be used.
  12. // But that results in breaking the rules of hooks errors?
  13. const uppy = new Uppy()
  14. return <Dashboard uppy={uppy} />
  15. }