tsc -w
tsconfig.json
- root
- outdir
- include
- target
- noEmitOnError
https://github.com/gitdagray/typescript-course/blob/main/lesson11/index.html
npm create vite@latest npm i
npm create vite@latest react-ts-basics replace src and public npm install npm run dev
- add CourseGoalProps type - title, description
- use deconstruct
- convert description to children prop
- use propsWithChildren type
- use arrow function to define component -
- FC type is generic ,
- type FC T is used for props type
use state
- add button with event to add goal ,
- add useState for goals
- add goals in unordered list