You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using text/jsx script implement a component by JSX syntax:
<script type="text/jsx">
import { ref, h } from 'vue';
export default function () {
const name = ref('Evan');
return (
<input value={name.value} onChange={(e) => { name.value = e.target.value; } } />
);
}
</script>
The "jsx-loader-like" loader was legacy for Vue3.x , createElement function's parameter structure changed. (See rfcs0008), The attributes on JSXElement should no longer be converted into the following data:
I know that JSX is still WIP, but I personally prefer this way of using setup (although this may lose the performance advantage brought by template compilation). If possible, hope to share related information about 'JSX loader/plugin (I'm not sure)' at the appropriate time
The text was updated successfully, but these errors were encountered:
When using
text/jsx
script implement a component by JSX syntax:The "jsx-loader-like" loader was legacy for Vue3.x ,
createElement
function's parameter structure changed. (See rfcs0008), The attributes on JSXElement should no longer be converted into the following data:And the following data structure was expected to the
createElement
function parameter format:I know that JSX is still WIP, but I personally prefer this way of using setup (although this may lose the performance advantage brought by template compilation). If possible, hope to share related information about 'JSX loader/plugin (I'm not sure)' at the appropriate time
The text was updated successfully, but these errors were encountered: