Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/the-fun-framework. 🛝 An experimental homegrown JS framework. crutchcorn.github.io/the-fun-framework
Something went wrong. Try again.
the-fun-framework index.html
12345678910111213141516171819202122232425262728293031<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vite + TS</title> </head> <body> <div style="display: grid; grid-template-columns: 1fr 1fr"> <div data-island-comp="Count"> <h1>Count</h1> <button data-on-click="updateCount()">Add</button> <p>Value: {{count.value}}</p> <p data-if="count.value % 2 === 0">{{count.value}} is even</p> <p data-if="count.value % 2 !== 0">{{count.value}} is odd</p> </div> <div data-island-comp="People"> <h1>Names</h1> <ul> <li data-for="item of list.value" data-key="item.key"> {{item.name}} </li> </ul> <button data-on-click="addPerson()">Add person</button> </div> </div> <script type="module" src="/example/main.ts"></script> </body></html>