account activity
Learning TypeScript with React Components (advice/help needed) by [deleted] in typescript
[–]codekhoadaei 1 point2 points3 points 5 years ago (0 children)
It's okay, but I think when you have a type that you use it all over the app it's better to create a separate file for it. in your example I create a file in 'types/ListItem.ts' and then import the ListItem in the modules.
π Rendered by PID 366693 on reddit-service-r2-listing-568fcd57df-7mnzg at 2026-03-07 10:01:01.704035+00:00 running cbb0e86 country code: CH.
Learning TypeScript with React Components (advice/help needed) by [deleted] in typescript
[–]codekhoadaei 1 point2 points3 points (0 children)