Hi guys, how are you? I created a compiler-like for HTML which takes an HTML templates and process it to output a readable tree of elements with metadata for each tags (parent/children), e.g. tags which have nested tags, will get turned into a tree of nodes with each tag as an element containing children of elements, etc.I was curious about how virtual DOM is created in today's JavaScript frameworks, and I am really trying to make something out of curiosity. If you follow up with the code you may notice a lot of while loops and much "over-engineered" code. Please let me know your thoughts about this and if anyone is pretty good at benchmarking and making algorithms faster, and those things, please do not hesitate to contribute, it would really mean a lot!Here is the link below, and your feedback is very welcome!https://github.com/jelhouss/thio
Submitted December 02, 2019 at 10:53PM by jelhouss
No comments:
Post a Comment