How flaviocost/lista-de-compras works
This is a small React shopping-list app. A user enters a product name, unit price, and quantity; the app validates the form and adds or updates an in-memory list. Users can edit or remove products, and the displayed purchase total reflects the list and applicable form values. The React entry point mounts the app, while the product shape is defined separately. The sampled source shows no persistence or external service integration.
Main entry points: App.tsx Shopping app · main.tsx React mount · item.ts Product type
Components 7
Shopping list
- React mount
src/main.tsx - Shopping app
src/App.tsx - Product type
src/item.ts - Product form
src/App.tsx - Product list
src/App.tsx - Purchase total
src/App.tsx
Other components
- User
Connections 8
- React mount → Shopping app: mounts
src/main.tsx - User → Shopping app: interacts
src/App.tsx - Shopping app → Product type: uses type
src/App.tsx - Product form → Product list: adds or updates
src/App.tsx - Product list → Purchase total: supplies values
src/App.tsx - Shopping app → Product form: renders
src/App.tsx - Shopping app → Product list: renders
src/App.tsx - Shopping app → Purchase total: renders
src/App.tsx