Steroids Form — как создать собственный движок форм для React

Это третья статья из цикла про наш фреймворк Steroids: в ней мы рассказываем о том, как пришли к созданию собственного движка форм для React. Если вы ещё не читали предыдущие материалы, рекомендуем с ними ознакомиться:

https://habr.com/ru/companies/kozhindev/articles/948468/

#фронтенд #фронтендфреймворки #фронтендразработка #react #reactjs #вебразработка #opensource #react_hook_form #formik

Steroids Form — как создать собственный движок форм для React

Steroids Form Это третья статья из цикла про наш фреймворк Steroids: в ней мы рассказываем о том, как пришли к созданию собственного движка форм для React. Если вы ещё не читали предыдущие материалы,...

Хабр

Today I ran into an unexpected behavior using #Formik in a #react app.

Some of the fields were conditionally rendered (depending on if it was create or edit mode), and their initial values were unset, but it still set values for those "unrendered" fields.

I believe it's because of the use of a construct like `{isEdit && ( ... )}` meant the Formik field elements were still invoked, but not rendered.

Something to watch out for.

One advantage, other than dead simple validation controls, of switching from #jsonforms to #formik means I have far more control of how the UI works.

#React #ReactJS #forms

What a day… Ended yesterday off with trying to get form level validation working with #jsonforms, this morning I decided it’s a better use of my time to just move over to #formik instead. Took less time to rewrite than it had taken to get half the validations working, and that was a hack at best.

#forms #React #ReactJS

How to build a Contact form with Formik in Next JS and TypeScript

Building a form in Next can be difficult, mostly when the form is complex. Using Formik, it's possible to quickly create simple forms whatever the complexity.

DEV Community
Oh yeah, seems to be the last #formik to #react-hook-form change in the whole project. There's light at the end of the tunnel.
Well, it took just a while, but now I realize #Formik is dead. Even 33.5k #GitHub stars won't keep it alive. Time to move on.

Where's my yesterday day gone? Bug hunting. So much frustrated about this change in #React 18 about Automatic Batching.

https://reactjs.org/blog/2022/03/29/react-v18.html#new-feature-automatic-batching

It breaks #Formik internal state management. And I mistakenly wanted to blame my code for this, but it is not.

https://github.com/jaredpalmer/formik/issues/3602

Well, that's life, when you bet on #OSS frameworks and libraries, I guess. Still very frustrating.

React v18.0 – React Blog

React 18 is now available on npm! In our last post, we shared step-by-step instructions for upgrading your app to React 18. In this post, we’ll give an overview of what’s new in React 18, and what it means for the future. Our latest major version includes out-of-the-box improvements like automatic batching, new APIs like startTransition, and streaming server-side rendering with support for Suspense. Many of the features in React 18 are built on top of our new concurrent renderer, a behind-the…