DEV Community

Discussion on: React's default way of appending itself to a DOM tree considered harmful

Collapse
 
iamandrewluca profile image
Andrei Luca • Edited

Good article!

Go even deeper :D

const rootElement = document.body.appendChild(document.createElement('div'));

ReactDOM.render(<App />, rootElement);
Collapse
 
trumbitta profile image
William Ghelfi

I'll try this! Nobody in their right mind would touch it :D