How matheusspaiva/pokedex works
This React Pokédex guides users from generation/name browsing into a Pokémon detail view, with additional reference features for forms, evolution, moves, encounters, types, and stats. The detail page fetches species and Pokémon data, translates species descriptions, and composes the feature views. The README documents the broader capabilities; some component internals were not excerpted, so their relationships are limited to documented behavior or indexed imports. Deployment and build infrastructure are excluded.
Main entry points: PokeInfo/index.tsx Pokémon detail loader · PokeList/index.tsx Generation & search · pokeApi.ts PokéAPI client · system/index.tsx Route dispatch
Components 21
Navigation
- Route dispatch
src/routes/system/index.tsx - Landing page
src/App.tsx
Browse catalog
- Generation & search
src/Page/PokeList/index.tsx - Pokémon results
src/Page/PokeList/Components/listaPokemon.tsx - Item details
src/Page/PokeList/Components/detailItens.tsx
Pokémon details
- Pokémon detail loader
src/Page/PokeInfo/index.tsx - Image gallery
src/Page/PokeInfo/components/ImageInfo.tsx - Alternate forms
src/Page/PokeInfo/components/Forms.tsx - Species information
src/Page/PokeInfo/components/Informations.tsx - Type interactions
src/Page/PokeInfo/components/SelectTypesSection.tsx - Base stats
src/Page/PokeInfo/components/PokemonStats.tsx - Evolution tree
src/Page/PokeInfo/components/EvolutionChain.tsx - Learnable moves
src/Page/PokeInfo/components/MovesSection.tsx - Encounter locations
src/Page/PokeInfo/components/Encounter.tsx
Shared services
- PokéAPI client
src/api/pokeApi.ts - Description translation
src/Utils/translate.ts - Browser local storage
src/Utils/LocalStorage.ts
Other components
- Pokédex user
- PokéAPI
- Translation service
- Pokémon artwork
Connections 27
- Pokédex user → Route dispatch: opens
- Route dispatch → Landing page: routes to
src/routes/system/index.tsx - Route dispatch → Generation & search: routes to
src/routes/system/index.tsx - Route dispatch → Pokémon detail loader: routes to
src/routes/system/index.tsx - Pokédex user → Generation & search: searches
- Generation & search → PokéAPI client: fetches generations
src/Page/PokeList/index.tsx - PokéAPI client → PokéAPI: requests data
src/api/pokeApi.ts - Generation & search → Pokémon results: renders results
src/Page/PokeList/index.tsx - Pokémon results → Pokémon artwork: loads artwork
- Generation & search → Item details: renders item details
src/Page/PokeList/index.tsx - Item details → PokéAPI client: fetches item data
src/Page/PokeList/Components/detailItens.tsx - Generation & search → Browser local storage: reads/writes moves
src/Page/PokeList/index.tsx - Pokédex user → Pokémon detail loader: selects Pokémon
- Pokémon detail loader → PokéAPI client: fetches Pokémon and species
src/Page/PokeInfo/index.tsx - Pokémon detail loader → Description translation: translates description
src/Page/PokeInfo/index.tsx - Description translation → Translation service: requests translation
src/Utils/translate.ts - Description translation → Browser local storage: reads/writes translations
src/Utils/translate.ts - Pokémon detail loader → Image gallery: renders gallery
src/Page/PokeInfo/index.tsx - Pokémon detail loader → Alternate forms: renders forms
src/Page/PokeInfo/index.tsx - Pokémon detail loader → Species information: renders description
src/Page/PokeInfo/index.tsx - Species information → Type interactions: renders type details
src/Page/PokeInfo/components/Informations.tsx - Pokémon detail loader → Base stats: renders stats
src/Page/PokeInfo/index.tsx - Pokémon detail loader → Evolution tree: renders evolution
src/Page/PokeInfo/index.tsx - Pokémon detail loader → Learnable moves: renders moves
src/Page/PokeInfo/index.tsx - Pokémon detail loader → Encounter locations: renders encounters
src/Page/PokeInfo/index.tsx - Encounter locations → PokéAPI client: fetches locations
src/Page/PokeInfo/components/Encounter.tsx - Image gallery → Pokémon artwork: loads artwork