I was unsure of this in the regard of whether or not it compiled to a div tag at runtime, in which case I'd say your comment would be a little nitpicky, since she probably knows this and assumes it's easier to say it's a div than having to explain Fragment, but it actually doesn't get compiled to anything. Essentially the same thing, though, sorta. Okay mini rant over.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post, Emma 👌
I have found a mistake with explaining empty brackets in JSX. You are putting:
as the same as
which is not true.
The true equivalent is
I was unsure of this in the regard of whether or not it compiled to a
div
tag at runtime, in which case I'd say your comment would be a little nitpicky, since she probably knows this and assumes it's easier to say it's adiv
than having to explainFragment
, but it actually doesn't get compiled to anything. Essentially the same thing, though, sorta. Okay mini rant over.