Skip to content

Instantly share code, notes, and snippets.

@geoffreymcgill
Created October 9, 2017 04:40
Show Gist options
  • Select an option

  • Save geoffreymcgill/65eb99f4799e9403ae7a9f03533b6b77 to your computer and use it in GitHub Desktop.

Select an option

Save geoffreymcgill/65eb99f4799e9403ae7a9f03533b6b77 to your computer and use it in GitHub Desktop.

Revisions

  1. geoffreymcgill created this gist Oct 9, 2017.
    22 changes: 22 additions & 0 deletions bridge.html5.vs.retyped.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    // 1. Update using statements:

    // Old Bridge.Html5
    using Bridge.Html5;

    // New Retyped
    using static Retyped.dom;


    // 2. Class names should be the same:
    var button = new HTMLButtonElement();


    // 3. All members now lowerCamelCase:

    // Old Bridge.Html5
    button.InnerHTML = "Click Me";
    Document.Body.AppendChild(button);

    // New Retyped
    button.innerHTML = "Click Me";
    document.body.appendChild(button);