Add some extra comments to describe code.

This commit is contained in:
Ray 2023-12-30 08:56:30 +00:00 committed by GitHub
parent d86dd487b1
commit 11a0a30858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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()