HNHacker News
TopNewBestAskShowJobs

patwoz

49 karma · joined October 5, 2020

meet.hn/city/de-Nuremberg

Available for work

Socials: - github.com/patlux

Interests: Freelancing, IoT, Mobile Development, Remote Work, Web Development

---

submissionscomments
patwoz··on Comparing Svelte and React
I'm writing about <MenuSelect<User users={..} /> and not about Svelte. I don't know anything about Svelte except what I just learned in the article. I just don't like the syntax of <MenuSelect<User> /> and favour <MenuSelect /> instead, because Typescript will inherit it's generic type from users={...}

See my example here: https://codesandbox.io/s/clever-neumann-89tnx?file=/src/App....

patwoz··on Comparing Svelte and React
Please don't. It looks awful. And I think it's not necessary. Typescript should inherit it's type depending on what you are passing into "users".
← PreviousPage 2 of 2