Replies: 3 comments 2 replies
-
Matter of taste. I've never liked to mix Html tags and code, i.e. view and control. Maybe to propose tsx ability but not to leave the templates. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think that is the beauty with Vue you can use templates or JSX. Leaves it up to the user to choose. There is not a chance templates would be dropped. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You forgot // HelloWorld.tsx
import { component$, useStylesScoped$ } from '@builder.io/qwik';
import styles from './HelloWorld.scss?inline';
export default component$(() => {
useStylesScoped$(styles);
return <div class="container">Hello, World!</div>;
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a concern that Vue is becoming too hacky to be enjoyable in the long run. React has had generic props for so long that it's grown on me to convert over to React.
I think we should switch over to TSX and just be done with the outdated
<template>
syntax.Consider the following TSX component in Qwik:
Usage:
Check out this StackBlitz fork of Qwik City to see the amazing inference.
Time to switch to TSX?
Beta Was this translation helpful? Give feedback.
All reactions