This code kata helps engineers practice skills related to TDD and Mobile development.
Build a simple screen that fetches and displays a list of users from a remote API.
The screen should handle three states:
- Loading — display a loading indicator while the request is in progress
- Success — display the list of users showing their name and email
- Error — display an error message if the request fails
Use the JSONPlaceholder users endpoint:
GET https://jsonplaceholder.typicode.com/users
This returns an array of user objects. You only need the name and email fields.
- Use Test-Driven Development to drive your implementation
- The network layer should be abstracted so your logic is testable without making real HTTP requests
- UI state should be explicit and testable