2 ms·
>> Is react happier being a component on page? I asked Dan Abramov (a lead React developer) the same question and he said yes, indeed this is exactly what face
by andrewstuart 7y ago
>> Is react happier being a component on page?
I asked Dan Abramov (a lead React developer) the same question and he said yes, indeed this is exactly what facebook do - they progressively added more and more small react components to their HTML pages.
In React you can also use "portals" to render to multiple HTML elements on an HTML page so you can do it both ways - one React app represented in multiple places in the DOM or you can just create many small React apps and plop them in multiple places on your page.