Skip to content

Commit

Permalink
Clarify Form Action problem comments (#383)
Browse files Browse the repository at this point in the history
Remove a confusing line 
clarify with capitalization that FormData is the type of object
  • Loading branch information
ezekeal authored Sep 29, 2024
1 parent 64be8cb commit 164f9eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions exercises/07.forms/05.problem.action/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { createRoot } from 'react-dom/client'

function App() {
// 🐨 create a function called logFormData
// it accepts a formData object which
// 🐨 console.log the formData object like we do in the current onSubmit handler
// 🐨 create a function called logFormData which accepts a FormData object
// 🐨 console.log the FormData object like we do in the current onSubmit handler
return (
<form
// 🐨 replace the string "api/onboarding" with the logFormData function
Expand Down

0 comments on commit 164f9eb

Please # to comment.