Created
February 17, 2018 05:33
-
-
Save rajiff/fa3113997f2f85746171c54a13bf20f4 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/zaxuhop
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script id="jsbin-javascript"> | |
class App { | |
render() { | |
return "<h2>Hello from class</h2>" | |
} | |
} | |
let htmlDoc = new App().render(); | |
document.getElementById("app").innerHTML = htmlDoc; | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">class App { | |
render() { | |
return "<h2>Hello from class</h2>" | |
} | |
} | |
let htmlDoc = new App().render(); | |
document.getElementById("app").innerHTML = htmlDoc;</script></body> | |
</html> |
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
class App { | |
render() { | |
return "<h2>Hello from class</h2>" | |
} | |
} | |
let htmlDoc = new App().render(); | |
document.getElementById("app").innerHTML = htmlDoc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment