1
0
mirror of https://github.com/videojs/video.js.git synced 2025-12-07 23:34:58 +02:00
Commit Graph

12 Commits

Author SHA1 Message Date
Jose Enrique Marquez
fdb87d8b72 docs(react): fix clear when unmount component (#7433)
Improve documentation on functional components to clean up reference if the component is unmounted.

Fixes #7361
2021-11-10 14:03:39 -05:00
FredTsang
d07a9de820 docs(react): update react functional component tutorial (#7377) 2021-08-23 17:21:47 -04:00
Ikko Ashimine
05083bb78d docs(react): Fix typo (#7375)
seperate -> separate
2021-08-12 10:09:07 -04:00
hcbd
2360236bca docs(react): Added a functional React component using React.useEffect (#7203) 2021-07-06 15:49:33 -04:00
Gary Katsevman
794cd71682 docs(fixup): fixup docs (#5489) 2018-10-10 11:09:53 -04:00
Edward Hummerston
1fa9dfbee2 docs(react guide): update guide to prevent memory leaks when components are disposed of (#4998)
When a component is disposed of, without calling ReactDOM.unmountComponentAtNode() on the data-reactroot in the destroyed component, the React.Component and videojs.Component (here EpisodeList and vjsEpisodeList) remain in memory.

The videojs.Component should listen for its dispose event and unmount its React root in the corresponding React.Component.
2018-03-07 12:09:06 -05:00
Zhulduz
7c30f97ef7 docs(react): Update docs for react tutorial (#4935) (#4952)
Using the default example, when disposing the player, a React DOMException was thrown because Video.js removed an element managed by React.
A simple solution is to wrap the player div in a separate div.

Fixes #4935.
2018-02-13 13:55:09 -05:00
mister-ben
1f3375e485 docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
Dave Kiss
cff2e503ef docs(react-guide): Use a React component as a VJS component (#4287) 2017-05-11 16:33:28 -04:00
Brandon Casey
61e20786a9 docs: fix links in generated docs (#4200) 2017-03-21 17:13:06 -04:00
Davy Tran
7ab52d1a59 docs: replace 'autoPlay' by 'autoplay' (#4080)
Fix #3995
2017-02-14 10:41:58 -05:00
Julien Bouquillon
05b39fe281 docs(guides): Add a basic ReactJS guide and update the FAQ (#3972) 2017-01-26 16:16:52 -05:00