You get a bonus - 1 coin for daily activity.
Now you have 1 coin
Why are fragments better than container elements? in REACT
Practice
Fragments are a little faster and use less memory, since they do not create an extra DOM node. This only brings a real benefit on very large and deep trees.
Some CSS mechanisms, such as Flexbox and CSS Grid, have special parent-child relationships, and adding a div in the middle makes it harder to keep the layout you want.
The DOM inspector is less cluttered.
Comments
To leave a comment
If you have any suggestion, idea, thanks or comment,
feel free to write. We really value feedback and are glad to hear your opinion.
Comments