Todo application is a web app that helps to organise your daily activities. It lists all the activities that you need to be completed and allows you to mark them as complete or not. Tasks can also be dragged and dropped in any position. It's a minimalistic website built using JavaScript ES6, Webpack and CSS
First, I will say I like the way, you kept the code DRY and your use of desctructuring. Altogther, you have a great project ๐ . But I feel like you can use some better practices to deliver KISS and DRY codes. Below are the issues:
The null input was not taken care of in the add method.
Kindly try to keep it simple with remove testing code.
Code quality checking (Javascript Best practices, DRY, KISS and YAGNI)
JavaScript Best Practices:
- window.location.reload() is not a good practice, find a way to include the event.preventDefault() so that the page
may not reload every time and an action get trigged. check (actions.jsline 10 and line 27 and ./src/index.jsline 72)
- unused codes used not be part of the codebase, kindly remove the ./modules/todos.js file.
- avoid using verbose code for code readability and maitenance. Kindly check this and refactor.
DRY
- I noticed there is localstorage snippet to store items that is repeated more than one time : (actions.js line 8, line 26 and line 32)