예제 #1
0
 static ReactElement View(string name)
 {
     return(DOM.Div
            (
                new Attributes {
     },
                DOM.P("First paragraph"),
                DOM.Button
                (
                    new ButtonAttributes
     {
         OnClick = ev =>
         {
             Window.Alert($"Hello {name}");
         }
     },
                    "Click me"
                ),
                DOM.P("Second paragraph")
            ));
 }