Skip to content

Commit

Permalink
feat(search-bar): minify the SearchBar component usage example (#4243)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamajus3 committed Jan 8, 2024
1 parent 3ebc86a commit 441cc65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Searchbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,10 @@ type TextInputHandles = Pick<
* const MyComponent = () => {
* const [searchQuery, setSearchQuery] = React.useState('');
*
* const onChangeSearch = query => setSearchQuery(query);
*
* return (
* <Searchbar
* placeholder="Search"
* onChangeText={onChangeSearch}
* onChangeText={setSearchQuery}
* value={searchQuery}
* />
* );
Expand Down

0 comments on commit 441cc65

Please sign in to comment.