16 lines
401 B
TypeScript
16 lines
401 B
TypeScript
import * as React from 'react';
|
|
import { StateChangeOptions } from '../';
|
|
type Item = string;
|
|
interface Props {
|
|
}
|
|
interface State {
|
|
items: Array<Item>;
|
|
}
|
|
export default class App extends React.Component<Props, State> {
|
|
state: State;
|
|
onChange: (selectedItem: Item | null) => void;
|
|
onUserAction: (changes: StateChangeOptions<Item>) => void;
|
|
render(): React.JSX.Element;
|
|
}
|
|
export {};
|