We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d0a8f4 commit 343e5b3Copy full SHA for 343e5b3
README.md
@@ -426,8 +426,8 @@ export declare interface AppProps {
426
children3: React.ReactChild | React.ReactChildren; // better, but doesnt accept strings
427
children: React.ReactNode; // best, accepts everything
428
style?: React.CSSProperties; // to pass through style props
429
- onChange?: (e: React.FormEvent<HTMLInputElement>) => void; // form events!
430
- props: Props & React.HTMLProps<HTMLButtonElement> // to impersonate all the props of a HTML element
+ onChange?: React.FormEventHandler<HTMLInputElement>; // form events! the generic parameter is the type of event.target
+ props: Props & React.PropsWithoutRef<JSX.IntrinsicElements['button']> // to impersonate all the props of a button element without its ref
431
}
432
```
433
0 commit comments