-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
post ideaAn idea for a blog postAn idea for a blog post
Description
Tips tricks and best practices for real life Typescript usage
- shout out (react typescript handbook)[https://react-typescript-cheatsheet.netlify.app/]
- prefer inference to explicit typing or casting
- Avoid using
any
- use
unknown
where you'd useany
to avoid typing acrobatics, especially in relation to third-party libraries - type props instead of using React.FunctionComponent
- type guarding when using unions ReactNode
- Working with third party libraries (and the joy of
3rdPartyType["key"]
Metadata
Metadata
Assignees
Labels
post ideaAn idea for a blog postAn idea for a blog post