From 11a0a30858418a25a95f865adc58ea8049ee16dd Mon Sep 17 00:00:00 2001 From: reiyua Date: Sat, 30 Dec 2023 08:56:30 +0000 Subject: [PATCH] Add some extra comments to describe code. --- src/App.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.js b/src/App.js index 884303b..d288ed1 100644 --- a/src/App.js +++ b/src/App.js @@ -60,6 +60,10 @@ export function MyForm(props) { // Create a function to handle the form submission and add data to Firebase. + // Once user presses submit, a popup will appearstating the data was sent. + // When user acknowledges popup and closes it, the page will reload, + // clearing the form and adding the new data to the database. + const submitHandler = async (event) => { event.preventDefault()