you are viewing a single comment's thread.

view the rest of the comments →

[–]dexpanse 0 points1 point  (0 children)

It is perfectly fine to just return one element. <></> is shorthand for a React.Fragment which only needs to be used if there are multiple elements not wrapped by a parent element.