Hooks have some intriguing properties, but they also involve some unnatural code and create unnecessary work for the garbage collector.
Thank you for pointing this out. To me hooks were always a way to solve problems in React that wouldn't be there if it weren't for React. They help, but come at a cost which barely anybody seems to talk about.
We really want to add first-class TypeScript support.
Basically, I separate out the <script> & <html> section into two files. The <script> part is generated from typescript and combined later before sending it into the svelte compiler.
I am currently working on a gulp build file to streamline the process.
Thank you for pointing this out. To me hooks were always a way to solve problems in React that wouldn't be there if it weren't for React. They help, but come at a cost which barely anybody seems to talk about.
We really want to add first-class TypeScript support.
Yes, please!