danieldietrich / candid

Candid is a surprisingly fresh and frameworkless JavaScript library for building web applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Programmatic binding vs reactive binding

danieldietrich opened this issue · comments

Candid is 100% pure web. It does not ship with an HTML Template engine or with compiler-supported variable bindings.

✅ Candid

Such reactivity would look like this but it would be a first step to a framework that re-invents the wheel (known from React, Vue, Svelte and also not-so-well-known like Aurelia).

❌ Not Candid

However, it would be good to have 3rd party template engines in mind, like Lit or even JSX.

JS API

But these may change over time. Relying only on vanilla HTML/JS is the most flexible and unopinionated approach. It is most important to get the API right (see #55):

  • how do we use this (in a script)`
  • would it make sense if a component would expose the (internal) state? security aspects?
  • we need to get web API vs JS API right