|
|
|
|
|
by dmitriid
2551 days ago
|
|
So many frameworks do this, and I can’t understand why [1]: onClick: "checkTodoItem()"
Why? What compells people to go ahead and say: yes, we’re writing everything in JS/TS which has perfectly fine support for actual functions. That’s why we’re going to arbitrarily use strings that evaluate to function calls in some parts of our framework.[1] See views https://typescene.dev/docs/introduction/overview |
|
Anyway, yes Typescene does let you supply an actual function in place of the string here, but for me that ruins the 'neat' flow of the view and starts mixing views with logic.