DEV Community

loading...

Discussion on: Building a Simple Virtual DOM from Scratch

ycmjason profile image
Jason Yu Author

Oops, I just realised there is one more, which is when there is no children in the node. But I didn't explicitly deal with that case as it will be automatically dealt with in the for loop in diffChildren