✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Betrachte folgenden Codeausschnitt:
import React, { useEffect, useState } from 'react';
function Example() { const [count, setCount] = useState(0); useEffect(() => { console.log('Count updated:', count); }, [count]); return <button onClick={() => setCount(count + 1)}>Click me</button>;}
Welches Verhalten ist korrekt?
(i)Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!