Instead of having a div element, I want an element like 'ng-container' in Angular to avoid useless div elements in the DOM.
What is the React equivalent of Angulars 'ng-container' ?
Explanation of ng-container
You can use React.Fragment
<React.Fragment>
"Rest of elements here"
</React.Fragment>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With