Merge pull request #1882 from webtorrent/render-deprecated

This commit is contained in:
Feross Aboukhadijeh 2020-10-28 19:07:03 +01:00 committed by GitHub
commit 49ab4bd201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ function onState (err, _state) {
resumeTorrents()
// Initialize ReactDOM
app = ReactDOM.render(<App state={state} />, document.querySelector('#body'))
ReactDOM.render(<App state={state} ref={elem => { app = elem }} />, document.querySelector('#body'))
// Calling update() updates the UI given the current state
// Do this at least once a second to give every file in every torrentSummary