Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,31 @@ import { SearchBar } from 'react-search-bar'
import 'react-search-bar/dist/index.css'

class Example extends Component {
const Data = [
{
key: 'john',
value: 'John Doe'
},
{
key: 'jane',
value: 'Jane Doe'
},
{
key: 'mary',
value: 'Mary Phillips'
},
{
key: 'robert',
value: 'Robert'
},
{
key: 'karius',
value: 'Karius'
}
];

render() {
return <SearchBar data={} />
return <SearchBar Data={Data} />
}
}
```
Expand Down