None
onSubmit
ofEmailForm
, validate that the input fields are not blank, and make afetch
POST
with new email info, clearing out the form afterwards- Make
fetch
GET
to retrieve updated emails list after sending new email
Go to Step 8 - Optimistic updating.
- Fetch API & Github's
fetch
polyfill - Learning ES6: Promises