Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdaber committed Jan 18, 2019
1 parent 2d0a8f4 commit 343e5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ export declare interface AppProps {
children3: React.ReactChild | React.ReactChildren; // better, but doesnt accept strings
children: React.ReactNode; // best, accepts everything
style?: React.CSSProperties; // to pass through style props
onChange?: (e: React.FormEvent<HTMLInputElement>) => void; // form events!
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
}
```

Expand Down

0 comments on commit 343e5b3

Please sign in to comment.