UNPKG

als-component

Version:

lightweight JavaScript library for creating reactive, server-rendered, and browser-based components.

18 lines (15 loc) 380 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="/node_modules/als-require/require.js"></script> <title>Todos</title> </head> <body> <div component="App"></div> </body> <script> require('./App').then(App => new App().update()) </script> </html>