I was following a tutorial when I saw the following code snippet. I couldn't find anything about the and operator being used in this way. Is this a react thing? Can someone explain this or link to documentation that explains it?
{basket?.length > 0 && (
<div className="checkout__right">
<h2>Subtotal</h2>
<Subtotal />
</div>
)}