Skip to content

Commit a504eeb

Browse files
committed
Upd README.md
1 parent b2c8ae7 commit a504eeb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ npm install react-select2-wrapper --save
1010

1111
## Usage
1212

13+
### Basic usage
14+
1315
```js
1416
import Select2 from 'react-select2-wrapper';
1517
@@ -22,7 +24,8 @@ import Select2 from 'react-select2-wrapper';
2224
}} />
2325
```
2426

25-
With data as an object
27+
### With data as an object
28+
2629
```js
2730
<Select2
2831
multiple={false}
@@ -37,7 +40,8 @@ With data as an object
3740
}} />
3841
```
3942

40-
With callbacks
43+
### With callbacks
44+
4145
```js
4246
<Select2
4347
multiple={true}
@@ -52,7 +56,8 @@ With callbacks
5256
}} />
5357
```
5458

55-
With default value
59+
### With default value
60+
5661
```js
5762
<Select2
5863
multiple={false}
@@ -68,7 +73,7 @@ With default value
6873
}} />
6974
```
7075

71-
With default multiple value
76+
### With default multiple value
7277

7378
```js
7479
<Select2
@@ -85,6 +90,8 @@ With default multiple value
8590
}} />
8691
```
8792

93+
### Access to select2
94+
8895
You can access to select2 as follows
8996
```js
9097
// assign a ref attribute

0 commit comments

Comments
 (0)