Open DrSensor opened 1 year ago
Seems the only compromise for avoiding data-binding footgun is to only allow named exports for handling ref Element #9. Basically named export must be a function or class. With this limitation, top-level
attribute is not necessary.
I think I will go with !
prefix and only limit named/top-level export function for ref element, event handler, and setter/getter (choose one). Would be nice if I can support this
context too.
export const total = {} // total.value += 1 // works without compiler but weird
use module in other area or projects
[^1]: DOM handleEvent: a cross-platform standard since year 2000