How pihu-5399/to-do-list works
This is a small React to-do list application. Users add, edit, and delete tasks; the central TodoMain component initializes task state from the context and supplies reducer dispatch to the input and task-list views. The reducer updates the task list and persists mutations in browser localStorage, which the context reads when providing initial data. The excerpts show these application paths, but no separate backend or other product capabilities are documented.
Main entry points: App.jsx App shell · Todomain.jsx TodoMain · TaskDisplay.jsx Task display · TodoReducers.jsx Todo reducer
Components 11
Task interface
- App shell
src/App.jsx - Task navbar
src/component/Navbar.jsx - TodoMain
src/component/Todomain.jsx - Task input
src/component/Taskinput.jsx - Task display
src/component/TaskDisplay.jsx - Edit modal
src/component/EditModal.jsx
Task state
- Todo context
src/context/TodoContext.jsx - Todo reducer
src/reducers/TodoReducers.jsx
Other components
- User
- React entry
src/main.jsx - Browser storage
Connections 15
- User → Task input: enters tasks
src/component/Taskinput.jsx - User → Task display: selects actions
src/component/TaskDisplay.jsx - React entry → App shell: renders
src/main.jsx - App shell → Todo context: provides state
src/App.jsx - App shell → Task navbar: renders
src/App.jsx - App shell → TodoMain: renders
src/App.jsx - TodoMain → Todo context: reads initial tasks
src/component/Todomain.jsx - TodoMain → Task input: passes dispatch
src/component/Todomain.jsx - TodoMain → Task display: passes tasks
src/component/Todomain.jsx - Task display → Edit modal: renders editor
src/component/TaskDisplay.jsx - Task input → Todo reducer: dispatches add
src/component/Taskinput.jsx - Task display → Todo reducer: dispatches delete
src/component/TaskDisplay.jsx - Edit modal → Todo reducer: dispatches edit
src/component/EditModal.jsx - Todo context → Browser storage: reads task list
src/context/TodoContext.jsx - Todo reducer → Browser storage: persists changes
src/reducers/TodoReducers.jsx