Тёмный

Master TypeScript Generics - React.js Example Included 

Mark Maksi
Подписаться 490
Просмотров 348
50% 1

Create reusable code using Generics in TypeScript. At the end I include an example by typing a React component with useEffect and useState while fetching data from an external free API to enforce what we have already learned in a real life example.
#typescript #generics #reactjs #javascript
- Hashnode blog post: markmaksi.hashnode.dev/master...
- Follow and contact me on X: / mmxi47
00:37 What are generics?
02:07 generics vs. any
03:16 generics in functions
04:53 diagram for generics vs. any
06:20 generics in classes
10:50 generics constraints
15:12 generics constraints - advanced syntax
23:38 generics in React.js

Наука

Опубликовано:

 

2 янв 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@kim92se64
@kim92se64 6 месяцев назад
What a great way of teaching it looks like so much easy to understand !!! Awesome work !!! Keep it up Your effort is very very helpful Regard: Khan Imran from Pakistan
@saratht1784
@saratht1784 2 месяца назад
you need more subscribers for sure
@0xtz_
@0xtz_ 6 месяцев назад
😮 amazing video Keep going waiting for more Ts videos 👏
@markmaksi
@markmaksi 6 месяцев назад
Thank you. Glad you like my content. I’m planning to make more TypeScript videos since it introduces interesting design patterns. Are you interested in a specific topic that you find hard to understand?
@0xtz_
@0xtz_ 6 месяцев назад
@@markmaksi thanks, man I had an issue in passing dynamic componenta example: based on a key gonna display a component and pass the it's props and in this I get to of type issues 🤣 even if I have a generic but still ton of issues
@markmaksi
@markmaksi 6 месяцев назад
@@0xtz_ well typescript is like css, the more you practice it the more it makes sense. 😂 anyway, can you share a code snippet or github repo so I look into it?
@0xtz_
@0xtz_ 6 месяцев назад
@@markmaksi yes ofc gonna publish and let you know thanks man 🙏
Далее
Generics: The most intimidating TypeScript feature
18:19
TypeScript Generics are EASY once you know this
22:21
Просмотров 129 тыс.
Что не так с воздухом в Корее?
00:45
ЭТОТ ПЕНЁК ИЗ PLANTS VS ZOMBIES - ИМБА!
00:48
УРА! Я КУПИЛ МЕЧТУ 😃
00:11
Просмотров 865 тыс.
TypeScript Origins: The Documentary
1:21:36
Просмотров 279 тыс.
Common Mistakes and Advanced Typescript Techniques
10:49
How to use generics in TypeScript
11:46
Просмотров 36 тыс.
Learn TypeScript Generics In 13 Minutes
12:52
Просмотров 244 тыс.
This is why learning typescript generics is important
13:19
Context API in react | get the concept
29:00
Просмотров 48 тыс.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 28 млн
iPhone 15 Pro в реальной жизни
24:07
Просмотров 454 тыс.
How to Soldering wire in Factory ?
0:10
Просмотров 4,8 млн