Problem Statement
What is 'state' in a React Native component?
Explanation
State is a built-in object in React components used to store data that can change over time. When state updates, React re-renders the component with the new values.
Code Solution
SolutionRead Only
const [count, setCount] = useState(0);
Practice Sets
This question appears in the following practice sets: