Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as React from 'react';
- import AutoComplete, {AutoCompleteProps} from 'antd/lib/auto-complete';
- interface IProps {
- onFocus: any;
- onBlur: any;
- otherProps: AutoCompleteProps;
- }
- // onBlur is fine, onFocus has a typeError
- export const ErrorType: React.SFC<IProps> = ({onFocus, onBlur, otherProps}) => (
- <AutoComplete onFocus={onFocus} onBlur={onBlur} {...otherProps} />
- );
Add Comment
Please, Sign In to add comment