Orta seviye
19 Ağustos 2026

Hatayı bul: React / Next.js

Tek bir kod parçası. Hatayı bul ya da hata olmadığını kanıtla.

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}

Soruna yol açan satırlara tıkla.

Kararın

Günde bir deneme. Cevap hemen ardından görünür.

Serini koru

Serini korumak ve ilerlemeni takip etmek için hesap oluştur.

Hesap oluştur