score:2

Accepted answer
{isMobile ? <MobileComponent /> : <DesktopComponent />}

score:1

   {condition && !otherCondition && (size === "small" || size === "extra-small") ? <MobileComponent /> : <DesktopComponent />}

score:2

{condition &&
    !otherCondition &&
    (size !== "small" && size !== "extra-small") && (
        <DesktopComponent />
    )}

Related Query

More Query from same tag