Guest User

Untitled

a guest
Oct 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import * as React from 'react';
  2. import AutoComplete, {AutoCompleteProps} from 'antd/lib/auto-complete';
  3.  
  4. interface IProps {
  5. onFocus: any;
  6. onBlur: any;
  7. otherProps: AutoCompleteProps;
  8. }
  9.  
  10. // onBlur is fine, onFocus has a typeError
  11. export const ErrorType: React.SFC<IProps> = ({onFocus, onBlur, otherProps}) => (
  12. <AutoComplete onFocus={onFocus} onBlur={onBlur} {...otherProps} />
  13. );
Add Comment
Please, Sign In to add comment