diff --git a/src/content/7/en/part7b.md b/src/content/7/en/part7b.md index f1271d97875..baf01590b26 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} +
) } diff --git a/src/content/7/fi/osa7b.md b/src/content/7/fi/osa7b.md index 5ad0f097ea1..d423d081416 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} +
) }