DEV Community

Discussion on: Aux Component vs React Fragment - which one is better?

Collapse
 
lionelrowe profile image
lionel-rowe

Can you explain "no need to create an extra DOM node"? I don't see any additional DOM nodes in the HOC version.

Collapse
 
olenadrugalya profile image
Olena Drugalya

I meant extra node not in HOC, but in general, if we create wrapper div it is extra DOM node.

Collapse
 
lionelrowe profile image
lionel-rowe

Ahh I see, makes sense, thanks for the clarification!