Closed autumnLeaves0 closed 5 years ago
can use Object Spread (...{}) avoid compiling by JSX, for Example
<div {...{ is: 'p }}/>
<div {...{ on: { click: handle } }}/>
Can you provide more JSX grammar support?
You can either do <div {...{ on: '!click': handle }} />
or you can try the new JSX implementation that supports event modifiers like <div vOn:click_capture={handle} />
https://github.com/vuejs/jsx
use template
<div @click.capture="handle"></div>
use createElement
createElement('div', { on:{ '!click: handle } })
How to use JSX?