mirror of
https://github.com/reiyua/RayRaysWordBingo.git
synced 2026-11-17 06:22:06 +11:00
Add some extra comments to describe code.
This commit is contained in:
parent
d86dd487b1
commit
11a0a30858
1 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,10 @@ export function MyForm(props) {
|
||||||
|
|
||||||
|
|
||||||
// Create a function to handle the form submission and add data to Firebase.
|
// 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) => {
|
const submitHandler = async (event) => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue