Запитання 22
In React, what happens when the setter function from useState is invoked?
Варіанти відповідей
An update is scheduled and React may batch multiple state updates for performance.
The component re-renders immediately without any batching.
The state is mutated directly without re-rendering.
Props of the component are updated automatically.