Вдохновение How JavaScript Classes Work от Thon Ly
На написание этого поста натолкнула статья How JavaScript Async/Await Works от Thon Ly
Перевод статьи от Krzysztof Kaczor
Очень часто нужно сделать выпадающие списки, блоки меню, модальные окна, и другие элементы, которые, скрываются после клика вне элемента.
React 16 уже доступен, и одним из наиболее интересных нововведений являются «Порталы».
Порталы позволяют создавать DOM узлы за пределами родительского компонента, оставаясь под контролем React. В…