Front-end BUCKET LIST application built with REACT. Users can add, update or delete items from a bucket list - which persists when they refresh or revisit the page. Uses STATE, HOOKS, COMPONENTS, PROPS, conditional rendering, forms and event handling. Built from starter code.
This isn't essential at all - but when I was manually testing the code, I found it useful to run:
localStorage.removeItem("bucket");
In order to reset the bucket / restore the default values, rather than the custom values I'd added.
I think that this would be a nice feature to have in the finished version / first release of the project - so users can easily do a hard reset if they'd like to, as well.
To solve this issue, I would need to:
[ ] Return a delete button on the front-end, as part of or as its own component
[ ] Create a function that ran the line of code above
[ ] Link this function to a onClick event on the delete button
This isn't essential at all - but when I was manually testing the code, I found it useful to run:
localStorage.removeItem("bucket");
In order to reset the bucket / restore the default values, rather than the custom values I'd added.
I think that this would be a nice feature to have in the finished version / first release of the project - so users can easily do a hard reset if they'd like to, as well.
To solve this issue, I would need to: