Created
September 30, 2019 18:08
-
-
Save mikaelbr/76f5c4a306af1d620fe2558b962ef457 to your computer and use it in GitHub Desktop.
Code example from blogpost https://medium.com/variant-as/abstracting-the-dom-by-making-ad-hoc-react-like-library-1c9b42618e63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log( | |
h1({ class: ["myHeader", "blue"] }, "Hello, World!") | |
); | |
//> <h1 class="myHeader blue">Hello, World!</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment