How lea-rn/todo works
This is a small React to-do app. The entry point mounts the app; users add tasks through a form, then view, edit, complete, or delete them in a list. App owns the in-memory task state and completion counts. The source index shows the entry-point wiring, and the excerpts show component rendering and callbacks. Performance reporting is also initialized at startup; no persistent store or backend is shown.
Main entry points: App.js Task state and stats · TodoForm.jsx Task form · index.js React entry · TodoList.jsx Task list
Components 8
App startup
- React entry
src/index.js
Task management
- Task state and stats
src/App.js - Task form
src/components/TodoForm.jsx - Task list
src/components/TodoList.jsx - Task item
src/components/TodoList.jsx
Performance reporting
- Vitals reporter
src/reportWebVitals.js
Other components
- User
- web-vitals package
Connections 9
- React entry → Task state and stats: mounts
src/index.js - React entry → Vitals reporter: invokes
src/index.js - User → Task form: enters tasks
src/components/TodoForm.jsx - Task form → Task state and stats: submits text
src/components/TodoForm.jsx - Task state and stats → Task form: renders
src/App.js - Task state and stats → Task list: renders tasks
src/App.js - Task list → Task item: renders each
src/components/TodoList.jsx - Task item → Task state and stats: invokes task actions
src/components/TodoList.jsx - Vitals reporter → web-vitals package: loads metrics
src/reportWebVitals.js