Skip to content

Commit c81847f

Browse files
committed
Upd README.md
1 parent 499292e commit c81847f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import Select2 from 'react-select2-wrapper';
2121
}} />
2222
```
2323

24-
With Object Data
24+
With data as an object
2525
```js
2626
import Select2 from 'react-select2-wrapper';
2727

2828
<Select2
2929
multiple={false}
30-
data={[{text: 'Bug', id: 0}, {text: 'Feature', id: 1}, {text: 'Documents', id: 2}, {text: 'Discussion', id: 'UUID'}]}
30+
data={[{text: 'bug', id: 1}, {text: 'feature', id: 2}, {text: 'documents', id: 3}, {text: 'discussion', id: 4}]}
3131
options={{
3232
placeholder: 'search by tags',
3333
}} />

0 commit comments

Comments
 (0)