From 2946a9ad4750424ec2b39d0b4edffae11c4f8a7b Mon Sep 17 00:00:00 2001 From: Adam Farhadi Date: Wed, 19 Nov 2025 13:21:03 +0100 Subject: [PATCH 1/2] Update English part7b.md: use the useField hook more explicitly in the example It is a little more clear to the student if the useField hook is used in several examples instead of only for the name. --- src/content/7/en/part7b.md | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/content/7/en/part7b.md b/src/content/7/en/part7b.md index f1271d9787..baf01590b2 100644 --- a/src/content/7/en/part7b.md +++ b/src/content/7/en/part7b.md @@ -208,18 +208,36 @@ The hook can be used in the following way: ```js const App = () => { const name = useField('text') - // ... + const born = useField('date') + const height = useField('number') return (
+ name: - // ... + onChange={name.onChange} + /> +
+ birthdate: + +
+ height: +
+
+ {name.value} {born.value} {height.value} +
) } From 1644d451f0462d3885b479b1490eab814bbf5d61 Mon Sep 17 00:00:00 2001 From: Adam Farhadi Date: Wed, 19 Nov 2025 13:26:44 +0100 Subject: [PATCH 2/2] Update Finnish part7b.md: use the useField hook more explicitly in the example It is a little more clear to the student if the useField hook is used in several examples instead of only for the name. --- src/content/7/fi/osa7b.md | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/content/7/fi/osa7b.md b/src/content/7/fi/osa7b.md index 5ad0f097ea..d423d08141 100644 --- a/src/content/7/fi/osa7b.md +++ b/src/content/7/fi/osa7b.md @@ -213,18 +213,36 @@ Hookia voidaan käyttää seuraavasti: ```js const App = () => { const name = useField('text') - // ... + const born = useField('date') + const height = useField('number') return (
+ name: - // ... + onChange={name.onChange} + /> +
+ birthdate: + +
+ height: +
+
+ {name.value} {born.value} {height.value} +
) }