Skip to content

Commit fb043a8

Browse files
committed
wording
1 parent 813799e commit fb043a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

courses/advanced-hooks/02-imperative-react/exercise/TwitterFeed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ function Tweet({ id }) {
1010
}
1111

1212
let script = document.createElement('script')
13-
// When this script runs from twitter, they'll establish a window.twttr variable
1413
script.setAttribute('src', '//platform.twitter.com/widgets.js')
1514
document.body.appendChild(script)
15+
// When this script arrives and loads, they'll establish `window.twttr`
1616
script.onload = () => {
1717
renderTweet()
1818
}
19-
}, [])
19+
}, [id])
2020

2121
return <div ref={tweetRef} />
2222
}

0 commit comments

Comments
 (0)