// single prop propName={ condition ? something : somethingElse } propName={ condition && something } // multiple props { ...( condition ? { ...setOfProps } : { ...setOfOtherProps })} { ...( condition && { ...setOfProps })}