paint-brush
Do you still register window event listeners in each component? (React in example)by@shystruk
29,048 reads
29,048 reads

Do you still register window event listeners in each component? (React in example)

by Vasyl Stokolosa2mNovember 27th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

From that description we may find that each time when you call <code class="markup--code markup--p-code">window.addEventListener('resize', callback)</code> to body element object will be added in resize event listeners list.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Do you still register window event listeners in each component? (React in example)
Vasyl Stokolosa HackerNoon profile picture
Vasyl Stokolosa

Vasyl Stokolosa

@shystruk

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Npmjs
Jsdelivr
Tuzz
Pkgstats
Thinbug
Vuejscomponent