3 ms·
I saw this as react choosing the obvious way to implement drawRect: inside a browser: painting with HTML. You could easily have a "graphics context" that acce
by mpweiher 11y ago
I saw this as react choosing the obvious way to implement drawRect: inside a browser: painting with HTML.
You could easily have a "graphics context" that accepts high-level objects, or a variant of drawRect: that creates subviews and then tells those subviews to draw themselves.
I don't see this as being fundamentally/structurally different, though there is a slight difference in the implementation.