Medior
19 augustus 2026Vind de bug: React / Next.js
Eén stukje code. Vind de bug, of bewijs dat er geen is.
tsx
1import { useState } from 'react'
2
3function Stepper() {
4 const [count, setCount] = useState(0)
5
6 const incrementBy3 = () => {
7 setCount(count + 1)
8 setCount(count + 1)
9 setCount(count + 1)
10 }
11
12 return (
13 <div>
14 <p>Count: {count}</p>
15 <button onClick={incrementBy3}>+3</button>
16 </div>
17 )
18}Klik op de regels die het probleem veroorzaken.
Jouw oordeel
Eén poging per dag. Het antwoord verschijnt direct daarna.
Behoud je reeks
Maak een account om je reeks te behouden en je voortgang te volgen.