2 ms·
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'
by patwoz 6y ago
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.tsx https://codesandbox.io/s/clever-neumann-89tnx?file=/src/App....