What is DOM, Shadow DOM and Virtual DOM?

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 75

  • @GauravSingh-st5sd
    @GauravSingh-st5sd 7 หลายเดือนก่อน +11

    This is by far the best video tutorial on these topics.

  • @arpitham8104
    @arpitham8104 5 หลายเดือนก่อน

    With examples you resolved many doubts on this topic…best on this topic so far…thank you ❤

  • @JonathanDewetfunlifegod
    @JonathanDewetfunlifegod 3 ปีที่แล้ว +29

    You explained this very well! Thanks for making this :) My only suggestion would be to make everything on your screen a bit bigger.

  • @tracynnnn
    @tracynnnn 2 ปีที่แล้ว +20

    Notes
    - Shadow DOM is hidden DOM tree attached to elements in regular DOM
    -- Shadow DOM elements aren't affected by CSS, conversely the CSS in the shadow root won't affect the regular DOM
    - Virtual DOM: 5:03

  • @MartinTheNext
    @MartinTheNext 7 หลายเดือนก่อน +1

    Agree with all the positive comments. Thanks a lot for your work!

  • @prashansapriya5963
    @prashansapriya5963 2 ปีที่แล้ว +2

    Explanation is good but you should pause with intonation and explain...to make it better!! :)

  • @hagridhaired
    @hagridhaired 3 ปีที่แล้ว +3

    Great video! Would love a video on custom components where you import external JavaScript libraries in the custom component!

  • @sreekarkandala388
    @sreekarkandala388 3 ปีที่แล้ว +1

    I quite enjoy your videos sir, but I have a request for you. Please zoom in to the screen, because the text is too small to read on a smaller device like my phone. Maybe you expect your audience to watch on a computer/laptop, but people like me exist. Please consider this request. Thank you.

  • @b4bhanu
    @b4bhanu 4 ปีที่แล้ว +15

    dude!! how come I am finding you now. This is unbelievably crisp and to the point. Really really good!.

  • @mike2071
    @mike2071 3 ปีที่แล้ว +2

    Can't see the code and talks too fast.

  • @kristijanlazarev
    @kristijanlazarev ปีที่แล้ว

    COOL yet simple

  • @shuttle6400
    @shuttle6400 2 ปีที่แล้ว +1

    This is amazing explanation. Please make more videos!

  • @miw879
    @miw879 2 ปีที่แล้ว +1

    boiiii a little slower speach won't hurt

  • @lorenzrosenthal119
    @lorenzrosenthal119 3 หลายเดือนก่อน

    I think the word "query" has the widest pronunciation variety in the whole dev-world.

  • @nerdycap7513
    @nerdycap7513 3 ปีที่แล้ว +5

    This is like that history of the world video. Superfast, crisp and concise. Great work, man!

  • @sayalibhasme764
    @sayalibhasme764 ปีที่แล้ว +1

    Just Wow, listen this video carefully, within 5 min you will get very good knowledge.☺

  • @konarksharma6524
    @konarksharma6524 3 ปีที่แล้ว

    Thank you sir nice explanation

  • @patrickc.2680
    @patrickc.2680 2 ปีที่แล้ว

    Very useful, thank you!

  • @felipeog
    @felipeog 4 ปีที่แล้ว +4

    Great video!
    A video about Web Components would be awesome too.

  • @jittojoyes7533
    @jittojoyes7533 ปีที่แล้ว

    Bro please make video on react js interview preparation.

  • @mohdmohsin5740
    @mohdmohsin5740 2 ปีที่แล้ว +2

    fast, understable and to the point
    Amazing

  • @SalesforceUSA
    @SalesforceUSA 3 ปีที่แล้ว +1

    What a video on a most important topic. Hats off

  • @mrsinghanuj
    @mrsinghanuj 4 หลายเดือนก่อน

    what an explanation. superb 👍

  • @ThanHtutZaw3
    @ThanHtutZaw3 2 ปีที่แล้ว

    how to select shadow dom in js. like input type=search and I want to add event in search-cancel shadow dom

    • @roadmapsh
      @roadmapsh  2 ปีที่แล้ว +1

      You can't access the Shadow DOM nodes in the outer page. You will have to write those event handlers as a part of Web Component itself.

  • @parahumanoid
    @parahumanoid 7 หลายเดือนก่อน

    Nice! A little hard to my ear, but the material is well worth it.

  • @aanibtmustudent2754
    @aanibtmustudent2754 ปีที่แล้ว

    Not too clear . you are runing faster than time?

  • @lewisbrown2159
    @lewisbrown2159 3 หลายเดือนก่อน

    wow wow wow. So gooood explanation!

  • @bihibari9161
    @bihibari9161 ปีที่แล้ว

    Please upload more videos sir

  • @anandrajkumar4191
    @anandrajkumar4191 4 ปีที่แล้ว +2

    Another great video. Just one suggestion when showing browser console. please try to enlarge the fonts a bit it helps in understanding the changes precisely. Thanks

    • @roadmapsh
      @roadmapsh  4 ปีที่แล้ว +1

      Thank you I will keep that in mind for future :)

  • @xdankitjain
    @xdankitjain 3 ปีที่แล้ว +2

    Pretty crisp, clean and very well explained

  • @er.nitingarg
    @er.nitingarg 2 ปีที่แล้ว +1

    Explaination is awesome, cleared all the doubts in very simple language while showing everything how these are working. Thanks Bro

  • @anilkulkarni1780
    @anilkulkarni1780 3 ปีที่แล้ว +1

    Thank you sir... God Bless you for making it simpler...

  • @vasu2553
    @vasu2553 2 ปีที่แล้ว

    Very nice explantions

  • @swadhinpatro1986
    @swadhinpatro1986 2 ปีที่แล้ว

    Thanks for the video!! The discord link has expired. If it's still an offer I would like to be part of it.

  • @hoomtal
    @hoomtal 8 หลายเดือนก่อน

    Perfect and neat!

  • @curiosdevcookie
    @curiosdevcookie 4 ปีที่แล้ว +1

    Very good explanation 👍🏼 Thank you!

  • @paulofernandoee
    @paulofernandoee 2 ปีที่แล้ว

    Great video!

  • @ahmadalfy
    @ahmadalfy 3 ปีที่แล้ว

    Nice work but the last part about the camelCase attributes and the events, these are not a part of the shadow DOM, this is JSX syntax

  • @fernandoarnaldovilanculo8286
    @fernandoarnaldovilanculo8286 3 หลายเดือนก่อน

    Amazing!

  • @sadiq20071
    @sadiq20071 4 ปีที่แล้ว +1

    Nice and crisp explaination. So when react component updates only virtual Dom, those changes will not b available when we see Dom using 'inspect element'?

    • @roadmapsh
      @roadmapsh  4 ปีที่แล้ว +4

      You *will* see those changes but react decides when it is going to do the changes on the actual DOM in an optimized way, so for example if you have a hundred components on a page and only of them is changed, react would re-render only one and won't re-render the rest of the 99 unchanged components. You might be interested in reading about react fiber:
      github.com/acdlite/react-fiber-architecture

    • @sadiq20071
      @sadiq20071 4 ปีที่แล้ว

      @@roadmapsh Got it. thanks for the reply. 👍

  • @shortertech138
    @shortertech138 2 ปีที่แล้ว

    Thanks

  • @muhammadabad3414
    @muhammadabad3414 3 ปีที่แล้ว +1

    A lot of useful information shared in 5 minutes. Great!!

  • @blackrobot138
    @blackrobot138 2 ปีที่แล้ว

    Just wao ....

  • @MrH0bb0
    @MrH0bb0 ปีที่แล้ว

    Good

  • @jamstawildman
    @jamstawildman 3 ปีที่แล้ว +1

    That was a really good explanation, and lots of information in such a short time. 👍

  • @DJ-bo4pz
    @DJ-bo4pz 4 ปีที่แล้ว +1

    To the point. Nice!

  • @daniilzadorozhnyy8950
    @daniilzadorozhnyy8950 3 ปีที่แล้ว

    I am still trying to understand the concept of the shadow Dom. is the point that you have an element in your webpage that is independent of parent? I got a little confused when you enabled the shadow Dom in inspection since in the end it renders all the same.

  • @SyedZainUlHasan
    @SyedZainUlHasan 2 ปีที่แล้ว

    Hi Kamran, Thanks for the video. It will be very nice if you describe things in little more detail. Thanks

  • @Steven-oe4hv
    @Steven-oe4hv 2 ปีที่แล้ว

    The example of tag is impressive:)

  • @14-Peaks
    @14-Peaks 7 หลายเดือนก่อน

    👍

  • @bikramsaha1932
    @bikramsaha1932 2 ปีที่แล้ว

    Would love to learn creating custom components

  • @AE-yr6mo
    @AE-yr6mo 3 ปีที่แล้ว

    Have you got any advice on creating modular jS code?

  • @AsitAithal
    @AsitAithal 4 ปีที่แล้ว +1

    Brilliant.

  • @lipunpatel5937
    @lipunpatel5937 3 ปีที่แล้ว

    Awesome explanation... Thank you..

  • @karvan101
    @karvan101 4 ปีที่แล้ว

    It have much more than expected, thanks for sharing

  • @irlonterblanche1639
    @irlonterblanche1639 2 ปีที่แล้ว

    Excellent video! Thanks!

  • @SirSidi
    @SirSidi 2 ปีที่แล้ว

    thank you. straight to the points!

  • @youmyname
    @youmyname 2 ปีที่แล้ว

    good and simple explanation

  • @chapchalite766
    @chapchalite766 3 ปีที่แล้ว

    Great video!. I love it.

  • @gilbertcheng3862
    @gilbertcheng3862 3 ปีที่แล้ว

    Loved it. Cut right to the meat of it.

  • @anggifergianp6566
    @anggifergianp6566 4 ปีที่แล้ว

    Shadow dom please sensei

  • @user-pp1zr5tg1n
    @user-pp1zr5tg1n 2 ปีที่แล้ว

    concise and precise

  • @10Rmorais
    @10Rmorais 4 ปีที่แล้ว +2

    Real great video, very straight to the point and clearly explained. Please make more videos! :)

  • @scroung7209
    @scroung7209 4 ปีที่แล้ว

    nicely done. (y)

  • @israilkarud9293
    @israilkarud9293 4 ปีที่แล้ว

    clear explanation

  • @sanjaygarg3540
    @sanjaygarg3540 3 ปีที่แล้ว

    Great !

  • @MuhammadNaveed-je6ne
    @MuhammadNaveed-je6ne 4 ปีที่แล้ว

    Awesome, Well explained :)

  • @thavs
    @thavs 4 ปีที่แล้ว

    thank!! great explanation

  • @sinanik4886
    @sinanik4886 4 ปีที่แล้ว

    great bro

  • @Gojothekitkat123
    @Gojothekitkat123 2 ปีที่แล้ว

    You forgot dark dom