News for hackers. Stuff that matters.
Re:Comparing Svelte and React by patwoz on Thursday March 25, 2021 @03:27AM (#26577342)
You can do that, but you don't have to.

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

Typescript will inherit the type automatically.

Re:Comparing Svelte and React by kecupochren on Thursday March 25, 2021 @05:49AM (#26578176)
That's amazing, thanks for the tip