Design comparison
Solution retrospective
Refactor the code with useReducer and useContext for better view. But the drag and drop function only work for mouse drag action. Touch screen no work.
What challenges did you encounter, and how did you overcome them?Drag and drop function to move the todo item
What specific areas of your project would you like help with?Currently use localStorage to save todo list item, but want to learn about a way for frontend to interact with backend to store data
Community feedback
- @C3SC0-V4113Posted 5 months ago
Hi! Pretty Solid Project, i have some recomendations You could save in localStorage your currente light/dark mode, so it will stay the same even when tou refresh the page Also i recommend use a library for the drag and drop, like you said, it doesnt work with touch screens, i use hello-pangea/dnd is solid and easy to implement Or you can use react-dnd if you want to suffer
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord