In this project, l built a simple HTML list of To-Do tasks using JavaScript ES6. This simple web page is built using Webpack and served by a Webpack dev server.
Amazing work on having most of the core functionality nerd_face. However, we still have room for optional improvements, just to spice up your code a little bit. Kindly see the listed here under, for your considerable application;
You might consider refactoring getFromStorage method using ternary operators to reduce the number of lines of your code. e.g;
const getFromStorage = () => (localStorage.getItem('list') !== null ? JSON.parse(localStorage.getItem('list')) : []);
Amazing work on having most of the core functionality nerd_face. However, we still have room for optional improvements, just to spice up your code a little bit. Kindly see the listed here under, for your considerable application;
const getFromStorage = () => (localStorage.getItem('list') !== null ? JSON.parse(localStorage.getItem('list')) : []);