Skip to content

Commit 6e916fd

Browse files
committed
Update README
1 parent c7cfdc2 commit 6e916fd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# react-hook-videojs
22

3-
> A simple react hook to easily integrate video.js with React
3+
> A simple react hook to easily integrate video.js with React. Supports React 18 Strict Mode.
44
55
[![NPM](https://img.shields.io/npm/v/react-hook-videojs.svg)](https://www.npmjs.com/package/react-hook-videojs)
66

77
# react-hook-videojs
88

9-
Due to how video.js mutates the DOM, integrating video.js with React can be a bit tricky. Especially if you want to support video.js component updates and correctly dispose of any old player.
9+
Due to how video.js mutates the DOM, integrating video.js with React can be a quite tricky. Especially if you want to support video.js component updates and correctly dispose of any old player.
1010

1111
React Hooks helps us package this quite nicely, and all you have to do to use this package is:
1212

@@ -62,8 +62,6 @@ const App = () => {
6262
};
6363
```
6464

65-
_Note: Videojs supports adding `<track>` and `<sources>` elements programmatically_
66-
6765
### Support for all `<video>` element attributes
6866

6967
This hook supports all attributes for the native `<video>` element directly on the `<Video>` component.
@@ -73,5 +71,3 @@ const App = () => {
7371
return <Video muted autopictureinpicture />;
7472
};
7573
```
76-
77-
_Note: video.js supports many of these (and registration of listeners) through the player options_

0 commit comments

Comments
 (0)