Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PROJECT CONTRIBUTIONS ARE ALLOWED AND WELCOMED. Follow the guidelines as outlined below!
Learn React todo-list for editing and deleting items.
Description
Changes that were made for the delete functionality were passing index as a parameter in the handleRemove function.
In addition, within the handleRemove a filter was applied to the data to aquire data matching the particular index value and
deleting it, if it was not equals to the parameter passed in the handleRemove fuction. SetTask was then called to update
the list.
For the edit functionality, a textarea tag was implemented around the list field so as to allow the the area to be editable
to edit values. Onchange was implemented also to the textfield , when the text field is clicked the area becomes editable.
Within the handleEdit function findindex function was used to get the index value and match it with the row selected.
When that happens settask is called again to override the old data with the new.
Other fictionalities implemented were a screen refresh function which was called in the delete to update the deleted values presented on screen.
Related Issue / Asana Task
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):