4 ms·
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.tsx https://codesandbox.io/
by patwoz 5y ago
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.tsx https://codesandbox.io/s/clever-neumann-89tnx?file=/src/App....
Typescript will inherit the type automatically.
- kecupochren 5y agoThat's amazing, thanks for the tip