diff --git a/docs/markdown/07-formulaires/12-form.md b/docs/markdown/07-formulaires/12-form.md index 8a4e6fb..66a322b 100644 --- a/docs/markdown/07-formulaires/12-form.md +++ b/docs/markdown/07-formulaires/12-form.md @@ -32,8 +32,8 @@ type MyFormProps = { function MyForm({ initialValue = '', onChange, onSubmit }: MyFormProps) { const [value, setValue] = useState(initialValue); const handleChange = (event: ChangeEvent) => { /* ... */ }; - return
onSubmit({ input: event.target.value })}> - + return onSubmit({ input: value })}> +
; }