react-select-search
react-select-search copied to clipboard
emptyMessage doesn't supports ()=>JSX.Element
Describe the bug Example isn't working in a TSX file:
<SelectSearch
options={options}
search
filterOptions={fuzzySearch}
emptyMessage={() => (
<div style={{ textAlign: "center", fontSize: "0.8em" }}>
Not found renderer
</div>
)}
placeholder="Select your country"
/>
TypeScript says that Type '() => JSX.Element' cannot be assigned to type 'string | (() => string) | undefined'
It would also be interesting if some action could be carried out with that query, for example creating it.
Thanks for the report, will fix asap!