Starting a new project in Typescript
`npx create-react-app my-app --template typescript`
Adding to an existing CRA project
`yarn add typescript @types/node @types/react @types/react-dom @types/jest`
Next, rename any file to be a TypeScript file (e.g. src/index.js to src/index.tsx) and restart your development server!
A tsconfig.json file should be automatically generated for you.
----------------------------------------------------------------------
Link to the lesson: https://github.com/braedongough/types...
Extra reading:
https://create-react-app.dev/docs/add...
Workshop by Braedon Gough
Twitter: / bbbraedddon
Linkedin: / braedon-gough-ba92a048
Website: http://braedon.xyz/