This shows some subtle differences in DX between JSX and Vue SFC.

Aug 22, 2025 · 6:41 AM UTC

6
2
82
7,379
Sort replies: Relevant Recent Liked
Replying to @johnsoncodehk
with typescript the jsx one would complain too
1
3
757
Both can complain, I just disabled both to avoid screen clutter.
701
Replying to @johnsoncodehk
Can you explain a bit what’s happening? What does msg! mean?
1
2
812
msg is a required prop but is missing.
1
5
757
Replying to @johnsoncodehk
With TSX first one will complain about msg and also give error that the second component don't even exist
1
513
Replying to @johnsoncodehk
You could use the h() in vue right:
181
Replying to @johnsoncodehk
What is the point of comparing two experiences with TS disabled?
89
Replying to @johnsoncodehk
That's neat! Do you often create components within .vue files in this way?
348