2 ms·
That's because HTML has an abstract declarative way to define the layout/drawing whereas Windows did not. But that's not especially important when it comes to
by coldtea 11y ago
That's because HTML has an abstract declarative way to define the layout/drawing whereas Windows did not.
But that's not especially important when it comes to React in general. The important is that the "how to draw myself" (in a high level) never leaves the view, not whether the "drawing instuctions" happen inside the app (as low level draw commands) or outside (by a mechanism that handles
composable values representing markup).
In both cases the view is a black box -- in that nobody else determines it's layout/style/contents. Whether somebody else or the view itself draws them might reflect a functional vs more imperative style, but it's not the key benefit of react.
In fact there are React implementations like React-Canvas that don't use the DOM/diffing mechanism at all -- they just invalidate the whole top level "viewport".