diff --git a/README.md b/README.md index eaf6aa15..6bcfdcc4 100644 --- a/README.md +++ b/README.md @@ -1379,6 +1379,8 @@ The first method uses an inferred method signature `(e: React.FormEvent +> Starting with React v19.2.10 `FormEvent` and `FormEventHandler` are deprecated and should be replaced with `SubmitEvent` and `SubmitEventHandler`. The older event types will still work but trigger a deprecation message. + **Typing onSubmit, with Uncontrolled components in a Form** If you don't quite care about the type of the event, you can just use `React.SyntheticEvent`. If your target form has custom named inputs that you'd like to access, you can use a type assertion: diff --git a/docs/basic/getting-started/forms-and-events.md b/docs/basic/getting-started/forms-and-events.md index e2428ad2..fa5b9d69 100644 --- a/docs/basic/getting-started/forms-and-events.md +++ b/docs/basic/getting-started/forms-and-events.md @@ -59,6 +59,8 @@ The first method uses an inferred method signature `(e: React.FormEvent +> Starting with React v19.2.10 `FormEvent` and `FormEventHandler` are deprecated and should be replaced with `SubmitEvent` and `SubmitEventHandler`. The older event types will still work but trigger a deprecation message. + **Typing onSubmit, with Uncontrolled components in a Form** If you don't quite care about the type of the event, you can just use `React.SyntheticEvent`. If your target form has custom named inputs that you'd like to access, you can use a type assertion: