This is a short question which only requires one state variable, which is the number of times the button has been clicked (count
).
Declare count
as a variable and attach a @click
handler to the <button>
which increments the count
when the event is triggered.