als-component
Version:
lightweight JavaScript library for creating reactive, server-rendered, and browser-based components.
24 lines (21 loc) • 555 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="/component.js"></script>
<script src="./Todo.js"></script>
<script src="./Todos.js"></script>
<script src="./App.js"></script>
<title>Todos</title>
</head>
<body>
<div component="App"></div>
</body>
<script>
new App().update()
// const app = new App()
// document.querySelector('body').innerHTML = app.call()
// app.runActions()
</script>
</html>