In Boolean algebra, the logical AND operator has higher order-of-operations precedence than logical OR. Therefore, the following two expressions should be equivalent:
Code: Select all
(true && true) || (true && false) // Result: true
true && true || true && false // Result: false in JSX (should be true)
Code: Select all
((true && true) || true) && false