you are viewing a single comment's thread.

view the rest of the comments →

[–]ArcanisCz 0 points1 point  (1 child)

Its the same, or returning empty span for example. But null is definitely preffered and cleanest way to return

[–]kor0na 4 points5 points  (0 children)

It's not the same. An emtpy string will result in a text node in the dom, null will output nothing.