As a User
I want to be able to submit a form
So that I can see a new goal on the goal list page
I also want to be able to delete a goal
So that I don't see it on the goal list page, even after refreshing
Description
Acceptance criteria
[x] When clicking the submit button the form data should be validated and processed.
[x] After submitting, the User should be redirected to the goal list page
[x] The goal should be added to the data.js
[x] After returning to the goal list page the goal should be visible
[x] When refreshing the page the goal should still be there
[x] On deleting a goal it should be erased from the data.js
[x] After deletion it should stay deleted, even when refreshing the page
Implement Local Storage
Value proposition
As a User I want to be able to submit a form So that I can see a new goal on the goal list page I also want to be able to delete a goal So that I don't see it on the goal list page, even after refreshing
Description
Acceptance criteria