Video: Default & Optional Props
React & TypeScript For Everyone
Released:
-
1. Series Introduction
29S
-
2. Create React TypeScript App
5M
-
3. What TypeScript In CRA Does
6M56S
-
4. Typed Props 101
12M49S
-
5. Default & Optional Props
7M39S
-
6. Types
6M55S
-
7. Function Props
11M11S
-
8. React Events In TypeScript
10M21S
-
9. Typing Children Props
6M35S
-
10. Typing useState
7M29S
-
11. useRef and Typing Dom Elements
10M1S
-
12. Strict Null Checking & Optional Chaining
7M40S
-
13. useReducer Part 1
12M44S
-
14. Better useReducer
6M58S
-
15. useEffect & Custom Hook
18M46S
-
16. Generics
11M5S
-
17. useContext
9M51S
-
18. useContext Part 2
12M11S
-
19. Class Components
5M49S
-
20. Types vs Interfaces
4M27S
-
21. Libraries & Types
6M25S
-
22. Where To Go Next?
4M20S
Default & Optional Props
Now that we have our prop types setup, we will take a look at default and optional props. By using the default and optional props, we can further ensure that our React components will receive the exact type of props that we expect.