Skip navigation
Multi-page forms with validation can be simple.
0:00 / 0:21

Multi-page forms with validation can be simple.

Alex Sidorenko

@asidorenko_35K followers

Visit on X
194 likesDownloadOriginal post

39,283 views

Multi-page forms with validation can be simple.

7 Comments

Comments from the original post on X (Twitter)

  • J's profile picture

    @com4tablynmb

    Elegant

    1 like

  • Ivan Kopenkov's profile picture

    @kop__ivan

    What happens if you press enter on the first step?

    1 like

  • Ivan Kopenkov's profile picture

    @kop__ivan

    Good example, but with this approach on a real project wouldn't you need to reimplement commonly used form library functionality such as: - custom validations of multiple dependant fields - watching values to apply effects - getting form context in nested elements - array fields

    1 like

  • Alex Sidorenko's profile picture

    @asidorenko_

    Form libraries are often overused for things that are not a business requirement. When encountering a complex form, the good first reaction is - "can we simplify it". If complex form is at the core of the business, it's another story. But it's rare.

    2 likes

  • Bilal's profile picture

    @deepwhitman

    yup - I don't know why React devs in particular need to go full formik / name your favorite package just to submit a couple of fields. Form state works perfectly fine in most cases.

    1 like

  • Батјушка Лењин's profile picture

    @batyshkaLenin

    So that's why I couldn't get a shorter domain...

  • informel's profile picture

    @informel_js

    💯. informel was built with that simplicity in mind. That form remains the same, just wrapped within <InformEl>, which brings more features: custom errors, getting the values, dirty state etc...