Skip to content

Commit c03c77a

Browse files
committed
update question 3 in hook reducer
1 parent a4e1db4 commit c03c77a

File tree

1 file changed

+4
-2
lines changed
  • src/components/patterns/HookReducer

1 file changed

+4
-2
lines changed

src/components/patterns/HookReducer/Page.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,16 @@ const Page = () => (
9292
<p>
9393
By default we are displaying the error message to the user even if the
9494
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`.
9797
</p>
9898
<p>
9999
A field is dirty when the value of the field is not equal to the initial
100100
value, false if the values are equal.
101101
</p>
102102

103+
<p>A field is submitted if the form is submitted :D</p>
104+
103105
<h3>Bonus exercise part 1</h3>
104106
<p>
105107
We are going to add some state to our form to know when the form is being

0 commit comments

Comments
 (0)