File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/components/patterns/HookReducer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,16 @@ const Page = () => (
92
92
< p >
93
93
By default we are displaying the error message to the user even if the
94
94
user did not use the form. That's not a great user experience. To improve
95
- that we are going to add another state in our form to identify which
96
- fields are `dirty`.
95
+ that we are going to add two more states in our form to identify which
96
+ fields are `dirty` and if the form is `submitted` .
97
97
</ p >
98
98
< p >
99
99
A field is dirty when the value of the field is not equal to the initial
100
100
value, false if the values are equal.
101
101
</ p >
102
102
103
+ < p > A field is submitted if the form is submitted :D</ p >
104
+
103
105
< h3 > Bonus exercise part 1</ h3 >
104
106
< p >
105
107
We are going to add some state to our form to know when the form is being
You can’t perform that action at this time.
0 commit comments