Skip to content

Conversation

@vishal-singh-web
Copy link

@vishal-singh-web vishal-singh-web commented Oct 29, 2025

  • Added src/hooks/useLocalStorage.js — reusable hook for JSON persistence to localStorage.
  • Refactored Home.jsx to use the hook (removed inline localStorage logic).
  • Normalized todo input (trim + case-insensitive duplicate prevention).
  • Fixed in-place array mutation in moveUp/moveDown (now clone + swap).
  • Replaced add control with semantic .
  • Todos now persist order and data across reloads.

Closes #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add localStorage persistence to Todo app

1 participant