How harshana25/todo_list-react works
This React todo app lets a user add tasks, mark them complete, remove them, or clear the list. The input and list dispatch actions through the reducer owned by App; App also renders total, completed, and remaining counts. The sampled entry point mounts App, and imports the global stylesheet. Edges reflect these visible calls and dispatches; no persistence or external services are shown.
Main entry points: App.jsx Todo app · todoReducer.js Todo reducer · TodoInput.jsx Todo input · TodoList.jsx Todo list
Components 7
App bootstrap
- React mount
src/main.jsx - Global styles
src/index.css
Todo interface
- Todo app
src/App.jsx - Todo input
src/components/TodoInput.jsx - Todo list
src/components/TodoList.jsx
Todo state
- Todo reducer
src/reducer/todoReducer.js
Other components
- User
Connections 11
- React mount → Todo app: renders
src/main.jsx - React mount → Global styles: imports
src/main.jsx - Todo app → Todo reducer: initializes state
src/App.jsx - Todo app → Todo input: renders
src/App.jsx - Todo app → Todo list: renders
src/App.jsx - User → Todo input: adds tasks
src/components/TodoInput.jsx - Todo input → Todo reducer: dispatches add
src/components/TodoInput.jsx - User → Todo list: manages tasks
src/components/TodoList.jsx - Todo list → Todo reducer: dispatches changes
src/components/TodoList.jsx - User → Todo app: clears tasks
src/App.jsx - Todo app → Todo reducer: dispatches clear
src/App.jsx