Through all presentations I'm hearing that React may update DOM within one cycle of reflow, but I cannot understand how it may complete using DOM API. What do I mean. For example, I need to update 3 attributes for p tag. I would complete it via DOM API:
let element = document.getElementById('el');
element.width = '10px';
element.height = '20px';
element.style.margin = '1px';
This code invokes reflow 3 times. And if I understand correct, React cannot gather these updates within one reflow as well. Am I right?