Rajasneha Profile picture
I develop stuff | šŸ”® Visual Storyteller | #javascript #salesforce #web3 | šŸ‘©ā€šŸ« Co-founder https://t.co/xtXq0n6UMF |

Jan 10, 2022, 6 tweets

Shadow DOM... Illustrated!

1/5
A thread... šŸ§µ

#javascript #Salesforce

2/5
What is DOM?

Browser generates Document object model(DOM) from static html files in order to manipulate the structure, style and content.

3/5
Enter Shadow DOM -
Enables encapsulation to keep the markup, style and behaviour hidden and private to the component that hosts it.

4/5

5/5
Events that are thrown from within a shadow DOM usually do not propagate outside the boundary unless it is set to composed: true

Thanks for your time. If you like this illustrated learning,

Please follow me - @Rajasneha_dev

And also please retweet the first thread, so budding developers understand by relating metaphors.

Do also take a look at other illustrated blogs - rsforce.net

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling