← Code LabReact Native0/50 solved · 0%
Hooks · easy

6. Modeling useState updates

Simulate a state-setter function without React.

Write `applyUpdater(state, updater)` that calls `updater` with the current `state` and returns the new value (like React's setState updater form).
Required in your answer: updater(