mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
import * as Autocomplete from 'react-autocomplete';
|
|
|
|
import * as React from 'react';
|
|
import { render } from 'react-dom';
|
|
|
|
declare const container: Element;
|
|
|
|
const items = ['hello', 'world'];
|
|
|
|
render(
|
|
<Autocomplete
|
|
items={items}
|
|
getItemValue={(item) => item}
|
|
renderItem={(item) => <div key={item}>{item}</div>}
|
|
value={items[0]}
|
|
/>,
|
|
container,
|
|
);
|