logical-expression.js 422 B

1234567891011121314151617181920212223242526272829303132
  1. <div>
  2. {a || "b"}
  3. </div>;
  4. <div>
  5. {a && "b"}
  6. </div>;
  7. <div>
  8. {a || <span></span>}
  9. </div>;
  10. <div>
  11. {a && <span></span>}
  12. </div>;
  13. <div>
  14. {a && <span>make this text just so long enough to break this to the next line</span>}
  15. </div>;
  16. <div>
  17. {a && b && <span>make this text just so long enough to break this to the next line</span>}
  18. </div>;
  19. <div>
  20. {a && <span>
  21. <div>
  22. <div></div>
  23. </div>
  24. </span>}
  25. </div>;