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

11. Loading/data/error state

Model the three states of a fetch.

Write `fetchState(loading, data, error)` returning `"loading"`, `"error"` or `"success"` based on priority: loading first, then error, then success.
Required in your answer: if (