import { App } from ".";
import { computed } from "./reactivity/computed";
import { reactive } from "./reactivity/reactive";
import { ref } from "./reactivity/ref";
import { html } from "./util";
// ------------------------------------------------
// Slots, multiple default and named, :if and :for
// const card = {
// template: html`
//
// mirror, no bind:
//
//
// mirror, bind:
//
//
// spread, no bind:
//
//
// spread, bind:
//
//
// regular prop:
//
//
// regular prop, bind:
//
//
//
div has "id" set to animal.value
//
//
div has "id" set and bound to animal.value
//
//
div has "animal" set to animal.value
//
//
div has "animal" set and bound to animal.value
//
//
div has "animal" spread
//
//
div has "animal" spread and bound
//
//
//
//
// if bool, mirror, no bind:
//
// if bool, mirror, bind:
//
//
// for list, mirror, no bind:
//
//
// for list, mirror, bind:
//
// if bool, for list, mirror, no bind: these have the value "DOG!" because by the time for :for directive is evaluated, animal.value is "DOG!", and no longer "dog".
//
//
//
//
// `,
// main() {
// const bool = ref(false);
// const animal = ref("dog");
// const spread = reactive({ animal: "panther" });
// const list = reactive([1, 2, 3]);
// setTimeout(() => {
// spread.animal = "PANTHER!";
// animal.value = "DOG!";
// bool.value = true;
// }, 500);
// setTimeout(() => {
// animal.value = "DOG!!!!!";
// }, 1000);
// return { animal, spread, bool, list };
// },
// };
// const app = new App();
// app.register("child", child);
// app.mount(parent, "#app");
// ------------------------------------------------
// Event directive
// const counter = {
// template: html`
//