Skip to content

Instantly share code, notes, and snippets.

@JoeVan21
Last active February 21, 2023 05:10
Show Gist options
  • Save JoeVan21/d44a87083c80b3c3528809b38579b6cb to your computer and use it in GitHub Desktop.
Save JoeVan21/d44a87083c80b3c3528809b38579b6cb to your computer and use it in GitHub Desktop.

Homework 6

Joseph Vanacore

Link To Vercel

What is the difference between these three? (HTML DOM, Virtual DOM, ShadowDOM)

  • HTML DOM is a representation that supports/shows the elements in an HTML document. This provides support for programs to access the structure of a web page. The HTML DOM is opened/created by the browser once the page on the website is loaded fully. It can be motified by Javascript. A Virtual DOM is primarly used in REACT and is used to compare changes within the UI and suggest updates frequently. This is a diffrent way of uploading your coding elements and tend to be faster and more efficent than uploading elements via HTML DOM. Lastly the Shadow DOM is used in styles and markup inside of a component within a webpage. For example, using this style can give access to update/customize HTML elements with their custom styles and behavior without it interfearing with other components on a webpage. Overall they all differ becuase they all are tasked diffrently, HTML DOM is a representation of elements, a Virtual DOM is used for efficent updates via React, and the Shadow DOM is a way to customize the behavior of a web component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment