React.Fragment understand with simple words
Shehraz arain
Posted on January 12, 2020
Fragment lets you group a list of children elements without adding an extra node to the DOM.
as you know It works fine.
when you see in inspect:
You have an additional div tag
That why React.Fragment concept is coming to the picture:
So now it works fine
when you see in inspect there is not additional div.
💖 💪 🙅 🚩
Shehraz arain
Posted on January 12, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
reactnative I have an error when installing and using the react-native-bluetooth-serial-next library on an ios device.
November 29, 2024
javascript Mastering the Mysteries of JavaScript Syntax: Discover the Secrets Behind These Symbols
September 28, 2024
webdev Understanding JavaScript Equality: A Deep Dive into Array and Object Comparisons
September 25, 2024