Ternary
Also written: ternary operator
The JavaScript form `test ? a : b`, which gives `a` if the test is true and `b` otherwise, such as `soldOut ? "opacity-50" : ""`.
Also written: ternary operator
The JavaScript form `test ? a : b`, which gives `a` if the test is true and `b` otherwise, such as `soldOut ? "opacity-50" : ""`.