Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
7 replies
Mordi

RHF & react-dropzone integration

I am having difficulties getting a Dropzone & RHF to work together. Right now upon submission I receive undefined and not the files.

here is a somewhat scrappy codesandbox: https://codesandbox.io/s/angry-brown-v7zpgn?file=/src/App.tsx

The image preview got messed up since I am using next/image in the real project.
image.png
CodeSandboxMordi490
angry-brown-v7zpgn by Mordi490 using autoprefixer, postcss-cli, react, react-dom, react-dropzone, react-hook-form, react-scripts, tailwindcss
angry-brown-v7zpgn - CodeSandbox
Was this page helpful?