This content originally appeared on DEV Community and was authored by Rajasneha
What is DOM
Browser generates Document object model from static html files in order to manipulate the structure, style and content.
Enter Shadow DOM
Shadow DOM enables encapsulation to keep the markup, style and behaviour hidden and private to the component that hosts it.
Events
Events that are thrown from within a shadow DOM usually do not propagate outside the boundary unless it is set to composed: true
If you like this content please follow on twitter for more of these - https://twitter.com/Rajasneha_dev
This content originally appeared on DEV Community and was authored by Rajasneha

Rajasneha | Sciencx (2022-01-10T07:59:47+00:00) Shadow DOM… Illustrated. Retrieved from https://www.scien.cx/2022/01/10/shadow-dom-illustrated/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.