4 ms·
And what does that use internally to manage tables? Just because there is layer between you and the API, it doesn't mean API is abandoned.
by zkmon 1y ago
And what does that use internally to manage tables? Just because there is layer between you and the API, it doesn't mean API is abandoned.
- __jonas 1y agoAre you implying that when doing DOM reconciliation, React uses these table-specific insertRow/insertCell APIs for adding and removing elements in tables instead of the regular DOM element APIs it would use for all other elements? I would be surprised if that's the case.
- mpeg 1y agoThe funny thing is the insertRow/insertCell API just call into DOM manipulation functions like appendChild internally, they just provide some syntactic sugar around things like managing the rows/cells array. It's all the same https://github.com/WebKit/WebKit/blob/28fa568972a4d34d867948618adb4f4cc5532061/Source/WebCore/html/HTMLTableRowElement.cpp#L117-L134 https://github.com/WebKit/WebKit/blob/28fa568972a4d34d867948...