-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
Just like svelte has shorthand attributes
<img {src} />And after vue3.4 also supported same-name shorthand.
<img :src />Proposal
Shorthand props
So can we also support shorthand props like svelte:
<img {src} />I know jsx can use {...{ src }} instead, but it's not beautiful for me.
I already created a plugin unplugin-jsx-short-bind to support it, because of TS, espree and babel don't support shorthand props, so I use ast-grep to parse ast.
DanSnow, zhiyuanzmj, KWangechi, Darhagonable, drwpow and 2 more
Metadata
Metadata
Assignees
Labels
No labels