📜 ⬆️ ⬇️

Vidom - blazingly fast alternative to React

Long time I did not write anything here, but today is just Friday, so you can throw on React tell about your craft Vidom.


Short story


When only React entered the HYIP stage (beginning of 2014), the idea of ​​a virtual dom, as well as everything connected with it (diffs, patches), seemed extremely interesting to me and I decided to realize it and feel through my own implementation. I looked at the implementations that existed at that time, made several approaches, rewriting everything several times from scratch in order to achieve maximum performance. Then, gradually, components, hooks, contexts, server rendering, es2015, etc. appeared. Then I looked at the fact that people in React were in pain when used, and one of the most popular problems was the performance of server rendering and the lack of support for fragments (this task has already been in the tracker for almost two years!). Rolling up my sleeves, I added support for the fragments. And the ssr performance in Vidom was originally incorporated into it, the result of the benchmark can be seen below.


The result was:


How does Vidom look like React?



How Vidom differs from React



Benchmarks


Repaint rate challenge
UI bench
Server-side rendering (node ​​v4.4.3, NODE_ENV = production):


Project on github: vidom


Ready to answer your questions, as well as see the issue and pull request on github;)


')

Source: https://habr.com/ru/post/304000/


All Articles