comments.rsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. rsx! {
  2. div {
  3. // Comments
  4. class: "asdasd",
  5. "hello world"
  6. }
  7. div {
  8. // My comment here 1
  9. // My comment here 2
  10. // My comment here 3
  11. // My comment here 4
  12. class: "asdasd",
  13. // Comment here
  14. onclick: move |_| {
  15. let a = 10;
  16. let b = 40;
  17. let c = 50;
  18. },
  19. // my comment
  20. // This here
  21. "hi"
  22. }
  23. // Comment head
  24. div { class: "asd", "Jon" }
  25. // Comment head
  26. div {
  27. // Collapse
  28. class: "asd",
  29. "Jon"
  30. }
  31. // comments inline
  32. div { // inline
  33. // Collapse
  34. class: "asd", // super inline
  35. class: "asd", // super inline
  36. "Jon" // all the inline
  37. // Comments at the end too
  38. }
  39. // please dont eat me 1
  40. div { // please dont eat me 2
  41. // please dont eat me 3
  42. }
  43. // please dont eat me 1
  44. div { // please dont eat me 2
  45. // please dont eat me 3
  46. abc: 123,
  47. }
  48. // please dont eat me 1
  49. div {
  50. // please dont eat me 3
  51. abc: 123,
  52. }
  53. }