Created
December 5, 2020 12:05
-
-
Save mrKimura/5dcd78bf0b30998e25241fe4ea2206e7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function createElement(html, className) { | |
| return Object.assign(document.createElement('div', { | |
| className, | |
| innerHtml: html, | |
| })) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment