Skip to content

Commit

Permalink
docs: fix a couple of typos in 07.forms & 08.inputs (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansn authored Nov 25, 2024
1 parent edcc0d3 commit 006101d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/07.forms/04.problem.submit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function App() {
// 1️⃣ 🐨 set the method to "POST" then update api.server.ts to handle the POST request
// 2️⃣ 🐨 set the encType to "multipart/form-data"
// 3️⃣ 🐨 add an onSubmit handler that calls event.preventDefault()
// 4️⃣ 🐨 create a FormData object from the the form (💰 event.currentTarget)
// 4️⃣ 🐨 create a FormData object from the form (💰 event.currentTarget)
// 5️⃣ 🐨 log the result of Object.fromEntries(formData)
// 6️⃣ 💯 as extra credit, see what happens if you remove the action, method, and encType
>
Expand Down
2 changes: 1 addition & 1 deletion exercises/08.inputs/05.problem.default-value/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ the first 10 characters:
<input type="date" defaultValue={new Date().toISOString().slice(0, 10)} />
```

This applies to `select` as well. Set it the the value of the option you want to
This applies to `select` as well. Set it to the value of the option you want to
have selected, and that one will be selected by default:

```tsx
Expand Down

0 comments on commit 006101d

Please sign in to comment.