Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They have improved TSX support in Vue 3. Did you try it? What does or does not work? I'm planning on switching to TSX.


No it totally works, it's not bad. The one big broken thing in August was that the type for components (RenderContext) thought component props should be passed as "props={ myprop: 1 }" instead of "myprop={1}".

See:

https://cdn.discordapp.com/attachments/568037134968160256/73...

Comment I made about this I dug up:

"The issue seems to be that the definition for RenderContext<Props> puts the props under the key "props", so when trying to define them on your JSX/TSX element, it expects you to put them under <MyComponent props={ } />. If you do this though, it breaks in another way because it's missing the other properties of RenderContext and it's not a great API =/"

This is fixed now though I am pretty sure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: