1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

fix typo in preferred-form-architecture (#2566)

A very quick typo fix. It's whether, not wheter. :)
This commit is contained in:
Christopher Kolstad 2022-11-30 10:33:42 +01:00 committed by GitHub
parent 6ae2c9a165
commit 753d6681ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,4 +14,4 @@ We have decided to architecture our forms in the following way:
* Create a reusable form component that does not contain any logic * Create a reusable form component that does not contain any logic
* Create separate Create and Edit components that use the form component and the form hook to create the form and implements it's own logic for submitting the form. * Create separate Create and Edit components that use the form component and the form hook to create the form and implements it's own logic for submitting the form.
In this way, we keep as much of the form as possible DRY, but we avoid passing state internally in the form so the form doesn't need to know wheter it is in create or edit mode. This allows us to keep one thing in mind when working, and not have to worry about dual states of the component. In this way, we keep as much of the form as possible DRY, but we avoid passing state internally in the form so the form doesn't need to know whether it is in create or edit mode. This allows us to keep one thing in mind when working, and not have to worry about dual states of the component.