From 0b98134ca59e2cc6430b5bd8a9b212b715cc59fe Mon Sep 17 00:00:00 2001 From: arichter83 Date: Mon, 17 Dec 2018 12:47:11 +0100 Subject: [PATCH] Add new example wit deconstructed argument --- .../react-bootstrap-typeahead-tests.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types/react-bootstrap-typeahead/react-bootstrap-typeahead-tests.tsx b/types/react-bootstrap-typeahead/react-bootstrap-typeahead-tests.tsx index 5fcbe15328..c77052a3c6 100644 --- a/types/react-bootstrap-typeahead/react-bootstrap-typeahead-tests.tsx +++ b/types/react-bootstrap-typeahead/react-bootstrap-typeahead-tests.tsx @@ -36,13 +36,21 @@ class BasicExample extends React.Component { filterBy={(option, props) => (props.text.indexOf(option) !== -1) } placeholder="Choose a state..." /> + (text.indexOf(option) !== -1) } + placeholder="Choose a state..." + /> - {option.name} + {option.name} {index} } />