You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filepond is quite heavy. Pages using it (/admin/questao-criar & /admin/questao-editar) are ~275kB (from next build). And the API is very bad, probably because it was not originally built for React.
Filepond is quite heavy. Pages using it (/admin/questao-criar & /admin/questao-editar) are ~275kB (from
next build
). And the API is very bad, probably because it was not originally built for React.Total 42.3kB minified + gzipped
react-dropzone
5.6kB minified + gzipped
React + FileReader API (no lib)
https://gist.github.com/hartzis/0b77920380736f98e4f9
Preview at: https://codepen.io/hartzis/pen/VvNGZP
This may work with react-dropzone. And also may be a good option to do file uploading through GraphQL.
Someone commented about integrating with react-awesome-slider (8.2kB). Another interesting slider is glider-js (2.7kB) + react-glider (3.4kB) = 6.1kB.
Uppy
This is very fancy, it supports several sources: Web can, Dropbox, Google Drive, etc. It supports resumable uploads, S3 uploads, and much more.
But it's quite big:
All of them bundle Preact which is about 10kB.
The text was updated successfully, but these errors were encountered: