Explorar o código

show more cases in the optional props example

Evan Almloff hai 1 ano
pai
achega
533c7bab49
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      examples/optional_props.rs

+ 6 - 0
examples/optional_props.rs

@@ -20,10 +20,16 @@ fn app(cx: Scope) -> Element {
         }
         Button {
             a: "asd".to_string(),
+            b: "asd".to_string(),
             c: "asd".to_string(),
             d: Some("asd".to_string()),
             e: "asd".to_string(),
         }
+        Button {
+            a: "asd".to_string(),
+            c: "asd".to_string(),
+            d: Some("asd".to_string()),
+        }
     })
 }