소스 검색

show more cases in the optional props example

Evan Almloff 1 년 전
부모
커밋
533c7bab49
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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()),
+        }
     })
 }