I'm trying to understand this piece of code:
!isLoading && !QRCodes?.length ? (.....
What is the role of ? in !QRCodes?.length? Wouldn't be the statement false anyway, when there's no QRCodes?
I'm trying to understand this piece of code:
!isLoading && !QRCodes?.length ? (.....
What is the role of ? in !QRCodes?.length? Wouldn't be the statement false anyway, when there's no QRCodes?
 
    
    !isLoading means if not loading and the QRCodes length is 0 display the thing after the (... the question mark in QRCodes?.length means that get length if exists
