Explore Library
QuizAdvanced

useState & useEffect Basics

Understanding how useState and useEffect manage state and side effects in RN function components.

In a React Native function component, you call useEffect with an empty dependency array: useEffect(() => { fetchData(); }, []). When does the effect run?