Pokémon Shopping Cart (Live Site)
Javascript
| React
| HeroIcons
This is a personal project to explore React (and soon Next.js) functionality.
- Have things to sell
- Add said things to a cart
- Purchase items via a checkout screen
- Component level state management
useState
- Data fetching, management, and reactivity
fetch
useEffect
- Loading state
- shimmer animation
- Pagination
SHOW
view- (mock) Checkout
- Client-side state management
- Refactor
PokemonCard
html- add-to-cart via the pokeball+plus+minus icon vs not the whole element
- clicking
PokemonCard
should toggle the focus of the element without modyfyingitemsInCart
- focus should route to a show view for the
pokemon
object PokemonCard
shadow should remain active on view change
- Move fetch to
PokemonList
for better loading experience- use
Suspense
- use
TypeScript
- for typed variables- Why?
- readability
- code error guarding
- Alternative?
- n/a
- Why?
Next.js
- for more development structure and features- Why?
next/navigation
- folder based routing & file system magic (
layout.jsx
,loading.jsx
,error.jsx
) - Vercel integration
- Alternative:
React Router
if the only feature we need is routing
- Why?
Tailwind
- for simplified css- Why?
- classless css
- consistency
- lower bundle size
- Alternative?
- regular
CSS
SASS
- regular
- Why?
Elf
- for client-side state management (when data is needed outside of just prop drilling)- Why?
- Netanel Basal made it
- Alternative?
- n/a
- Why?
- Project is
IN PROGRESS
- Data provided by PokéApi