React Typeahead Component

Show Code
Regular Typeahead

Value is

Show Code
Typeahead - API Response
×

Value is {"id":0,"name":"Somebody"}

Show Code
Typeahead - formatRecord and formatContent
Record needs id and name properties. When data is coming form third party API, formatRecord is used to format the record. you can also use formatContent to overwrite the dropdown row format.

Value is