diff --git a/src/content/learn/index.md b/src/content/learn/index.md index fa8deddf..b57655bc 100644 --- a/src/content/learn/index.md +++ b/src/content/learn/index.md @@ -313,6 +313,7 @@ Now you can declare a *state variable* inside your component: ```js function MyButton() { const [count, setCount] = useState(0); + // ... ``` You’ll get two things from `useState`: the current state (`count`), and the function that lets you update it (`setCount`). You can give them any names, but the convention is to write `[something, setSomething]`.