How ifouzezi/crypto-frontend works
Crypto Assets Viewer is a small React app for viewing live cryptocurrency names, symbols, and USD prices. The user-facing flow starts at the app entry point, loads CoinGecko market data through a hook and API client, then displays loading/error feedback or a searchable asset table. The table delegates row rendering and price formatting to focused components. The README documents the main capabilities; the graph’s source-level relationships are limited to the excerpted files.
Main entry points: homepage.jsx Homepage · main.jsx React Entry · App.jsx App · useAssets.js Asset Hook
Components 13
Application UI
- React Entry
src/main.jsx - App
src/App.jsx - Homepage
src/pages/homepage.jsx
Market Data
- Asset Hook
src/hooks/useAssets.js - CoinGecko Client
src/api/coinGecko.js - CoinGecko API
Asset Display
- Search Bar
src/components/searchBar.jsx - Asset Table
src/components/assetTable.jsx - Asset Row
src/components/assetRow.jsx - USD Formatter
src/utils/format.js - Loading State
src/components/loading.jsx - Error Message
src/components/errorMessage.jsx
Other components
- User
Connections 12
- User → React Entry: opens
- React Entry → App: renders
src/main.jsx - App → Homepage: renders
src/App.jsx - Homepage → Asset Hook: loads data
src/pages/homepage.jsx - Asset Hook → CoinGecko Client: fetches assets
src/hooks/useAssets.js - CoinGecko Client → CoinGecko API: requests markets
src/api/coinGecko.js - Homepage → Search Bar: renders
src/pages/homepage.jsx - Homepage → Asset Table: renders
src/pages/homepage.jsx - Homepage → Loading State: renders
src/pages/homepage.jsx - Homepage → Error Message: renders
src/pages/homepage.jsx - Asset Table → Asset Row: renders
src/components/assetTable.jsx - Asset Row → USD Formatter: formats price
src/components/assetRow.jsx