Component - React Query for data fetching
This component uses React Query to fetch data from an API and display it in a list. It shows loading and error states automatically, making data fetching easy and efficient in React Native apps.
This component uses React Query to fetch data from an API and display it in a list. It shows loading and error states automatically, making data fetching easy and efficient in React Native apps.
QueryClientProvider
└── View
├── Text (Title)
├── Conditional (Loading/Error)
│ ├── ActivityIndicator (if loading)
│ └── Text (if error)
└── FlatList
└── Text (List Item)