babel-plugin-jsx
babel-plugin-jsx copied to clipboard
JSX for Vue 3
I tried `v-on`, `on`, `vOn`, none worked. What is the correct way to bind an event?
I think it's better to mention in the installation section that jsx is support by default in [Vue cli 4](https://cli.vuejs.org/config/#babel) >All Vue CLI apps use `@vue/babel-preset-app`, which includes `babel-preset-env`, **JSX**...
### 🧐 Problem Description `Foo` will produce `` comment node in the DOM tree, how to use it so that it will produce ``? ### 💻 Sample code ```html import...
情况一:没有完整例子 文档中只有定义slots对象,但是在组件里该这么用没说,只能试一遍。感觉如果文档写了,那大可不必 情况二:没有说明默认slot 正常来说默认插槽是很合理的,不过由于可能实现机制问题所以不支持,那希望也说一下,不然一直找,后来才发现么有 情况三:如果不写vSlots而直接使用默认插槽会有坑也没说明 ``` const A = (props,ctx) => {ctx.slots.default?.()} const B = () => 这是动态的内容 ``` 上面代码实际上是能跑的,但是问题是里面的内容如果是动态或者发生了改变是不会触发更新的 这一点和情况二一样如果能提前说明一下会省事很多,当然如果能支持肯定更好,不然太别扭了,传个插槽得先传个对象
 **but when I switch to Event, I can't find e.target.value, how I can get the input value through the event** 
### 🧐 Problem Description Hello, Now I want transition is nested in router-view, but I recevied a warning from vue: **Component inside renders non-element root node that cannot be animated.**...
```tsx // 我应该如何为自定义组件的实例定义类型?How should I define type to custom component? const scrollViewInstance = ref() return () => { return ( {/* 报错没有定义该类型 error: don't have type 'ref' on this instance...
Hello team, I am currently developing new library that would output JSX template, so this output could be used in Vue and React projects. Unfortunately, I found this library does...
I know that I can listen to native events using `onXXX`. However I can't find out how to listen to custom events (`emit()`ed). Is there any way to do this?