diff --git a/content/docs/hooks-state.md b/content/docs/hooks-state.md index 0b4d15b65e7..2498c4f170a 100644 --- a/content/docs/hooks-state.md +++ b/content/docs/hooks-state.md @@ -15,11 +15,13 @@ import React, { useState } from 'react'; function Example() { // Declare a new state variable, which we'll call "count" + // and a function "setCount" which we will call to update "count const [count, setCount] = useState(0); return (
You clicked {count} times
+ //Over here we are calling the function setCount and passing it the value we want it to assign to "count"