Pārlūkot izejas kodu

update README.md

shaojing 6 gadus atpakaļ
vecāks
revīzija
1906a839bf
1 mainītis faili ar 20 papildinājumiem un 0 dzēšanām
  1. 20
    0
      README.md

+ 20
- 0
README.md Parādīt failu

@@ -20,4 +20,24 @@ Build dist.
20 20
 
21 21
 ```bash
22 22
 $ npm run build
23
+```
24
+
25
+
26
+## Install package.
27
+
28
+```bash
29
+$ npm install https://git.links123.net/links123.com/video_player.git --save
30
+```
31
+
32
+## Usage
33
+
34
+```javascript
35
+import { DefaultPlayer as Video } from 'react-html5video';
36
+import 'react-html5video/dist/styles.css';
37
+
38
+const Player = () => (
39
+  <Video autoPlay>
40
+    <source src="demo.mp4" type="video/mp4" />
41
+  </Video>
42
+)
23 43
 ```