What does calling the setter returned by
useState actually do?- aBlocks the JS thread until the native UI has redrawn.
- bImmediately mutates the variable in place before the line finishes executing.
- cWrites the value directly to AsyncStorage for persistence.
- dSchedules a re-render with the new state value on the next render pass.✓
Explanation:
useState's setter does not mutate anything synchronously. It tells React that this component's state changed, and React schedules a re-render where the component function runs again with the new value.