Tech overview
- Next.js App Router with a client component for interactive state.
- TanStack Query handles fetch, cache, and loading/error states.
- Keyed caching via
['pokemon', id]prevents duplicate requests. - Local
idstate selects the Pokémon; updates trigger refetch. - UI:
PokemonCardrenders data;ButtonGroupincrements/decrements id. - Styling with styled-components for scoped, themeable styles.