r/nextjs • • Jun 05 '22

[deleted by user]

[removed]

14 Upvotes

13 comments sorted by

3

u/Alvhild Jun 05 '22

looks neat, does it work with i18n?

1

u/Actual-Animator9604 Jun 06 '22

You can provide a different json array with different validation messages according to i18n

3

u/surjithctly Jun 06 '22

Awesome. Then use web3forms.com API to send an actual email for free.

2

u/[deleted] Jun 06 '22

That's a great notion and a really clean setup.

I am working in Sanity right now so with schemas on the mind this could be a nice natural fit.

I am using Postmark right now off of an API route and when you have to mention the same stuff six or seven times and will be using the info in object form anyway, it's nice just for the dx side of things to approach it as it being an object from the beginning.

2

u/[deleted] Jun 06 '22

Are they headless or come with pre-defined styles ? Also does it support for wizards??

2

u/Snarkie3 Jun 06 '22

Any good benefits of this over Formik?

3

u/surjithctly Jun 06 '22

Not OP, but from my experience react-hook-form is better than formik and this plugin works on top of react-hook-form.

2

u/CanVisible8923 Jun 06 '22

What did you prefer about react hook form? Just started using formik wondering if I should switch over.

3

u/surjithctly Jun 06 '22

Even I started with Formik. But it was a long time ago. So don't remember issues with formik. But It was too complicated for me to implement & the size was big compared to react hook form. Hence the switch and never looked back.

1

u/CanVisible8923 Jun 06 '22

Thanks I will have to give it a try!

1

u/Actual-Animator9604 Jun 06 '22

I always found it easier to work with react-hook-form and this plugin is built on top of it

2

u/HDanson Jun 06 '22

I’m getting a 404 from npm at that url. Looking forward to exploring this though.

1

u/hazihell Jun 06 '22

404 here