React Query has a very elegant API for fetching and caching data in React applications without getting tangled in global state.

Reference