-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
Hey Ryan :)
I really like the direction you are moving to with dom-expression. The latest feature use
directive is very similar to modifiers known from Swift UI or Ember.js. You literally read in my mind with that as I was going to fork the repo and implement it this week.
I was wondering, would you be keen on exposing an alternative syntax? The current one is not fully JSX and types friendly. Have you considered a syntax like this?
<button $={[on('click', clickFn)]}>Click Me</button>
the $
is one of not reserved and allowed by JSX. Also passing the modifiers as an array, makes this syntax fully supported by typescript and JSX.
the example on
function would generate a new function that will be used exactly like the current use:on
directive. I am really curious about your opinion on that.
Metadata
Metadata
Assignees
Labels
No labels