Chapter 2 Assignment

Wire a typed fetch from mobile

The brief

Add a `useUsers()` React Query hook in your mobile app that calls your Grit API. Render the list on a screen. Verify TypeScript autocompletes the User fields.

You've completed this when

  • grit sync runs and generates packages/shared types
  • Mobile app imports the User type without errors
  • A screen renders the list from the API

Worked through every criterion?

Push your code to GitHub, paste the link in your notes.md, and move on.

Continue to ch.3: Mobile Auth