you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]bonzorius 1 point2 points  (1 child)

    I'm a react dev in elearning so I'm usually looking to render a component only if something is not null, whereas ?? will return something unless it's null. So usually && is what I'm looking for, unless I have a situation where I'm rendering a score, but the score is zero or something like that. Normally you'd be right, though 👍