Skip to content

Instantly share code, notes, and snippets.

@geoffreymcgill
Created October 9, 2017 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffreymcgill/65eb99f4799e9403ae7a9f03533b6b77 to your computer and use it in GitHub Desktop.
Save geoffreymcgill/65eb99f4799e9403ae7a9f03533b6b77 to your computer and use it in GitHub Desktop.
// 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment