Why you SHOULD be using TypeScript with React

  Рет қаралды 25,906

PedroTech

PedroTech

Күн бұрын

Пікірлер: 119
@antoniobasilio319
@antoniobasilio319 2 жыл бұрын
You have the channel that helps me the most BY FAR. Thank you so much for your videos! Congratz!
@tegaogheneovo5881
@tegaogheneovo5881 2 жыл бұрын
pedro my backend sensei
@universecode1101
@universecode1101 2 жыл бұрын
Yeah I see Typescript everywhere and it’s very important to learn it
@butterfly7562
@butterfly7562 2 жыл бұрын
Universe Code, you're important, too. I see you on all the programming channels 😀
@universecode1101
@universecode1101 2 жыл бұрын
@@butterfly7562 Thanks ... I try to keep up to date by looking at what my colleagues are proposing. Pedro is very good
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I see you everywhere too hahahaha thank you for the support!
@primetime645
@primetime645 2 жыл бұрын
I always hated Typescript because I never knew about Interfaces. This was pretty helpful to say the least.
@asaventurasderobson
@asaventurasderobson 2 жыл бұрын
I have that problem, except the first project I took was full of that, so I manage to learn quickly. But I still struggle with Typescript sometimes. Is like struggling with JavaScript, except double the complexity, but half the code 😂😂😂
@TheZarique
@TheZarique 2 жыл бұрын
Valeu Pedro. Sempre venho aprender no seu canal, e vc sempre trás conteúdos realmente importantes pra quem está aprendendo
@ramasabajo5360
@ramasabajo5360 Жыл бұрын
Thanx for convincing me to start learning Typescript to use with my React apps. I don't like the boilerplate code, but the effort all makes sense to me now.
@skl949
@skl949 2 жыл бұрын
bro i love your videos i like every single one! keep doing this i know you will be the next web dev simplified
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I love WDS videos, that would be awesome lmaoo Thank you!
@songokussj4cz
@songokussj4cz 2 жыл бұрын
@@PedroTechnologies You're much more helpful than WDS :-) Better examples, you explain edge cases, multiple possibilities, etc... Much better :-)
@Trzimajewski
@Trzimajewski 2 жыл бұрын
IMO with the camera the videos just have a different approach, and I loved it, man, keep up the good work
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you! I've been saving money to buy this camera and I finally did it :)
@omarandresramirezrodriguez1640
@omarandresramirezrodriguez1640 2 жыл бұрын
could you make a project using typescript in backend and frontend? ...it'd be great...thanks for your videos
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Yes!
@Trzimajewski
@Trzimajewski 2 жыл бұрын
@@PedroTechnologies I'd like to see some Next + Prisma stuff (full stack, sure)
@yuxianxu806
@yuxianxu806 2 жыл бұрын
@@Trzimajewski RedwoodJS integrates you mentioned.
@danielkamau8436
@danielkamau8436 2 жыл бұрын
Nice work Pedro. I love the teaching you give me. With your face on is nice, this makes you feel connected to your niche, also I think in away it cements concentration of the people watching and following.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Next video has my face on again :)
@danielkamau8436
@danielkamau8436 2 жыл бұрын
@@PedroTechnologies yeah sure, am your student and I can confirm that.(your bro from Kenya, come and code one day from here, I will cater for all bills, I learn a lot from you)
@asaventurasderobson
@asaventurasderobson 2 жыл бұрын
Great. I have been struggling with some of this concepts.
@k303k
@k303k 11 ай бұрын
You convinced me to learn TypeScript deeeply .Thanks a lot Pedro
@Hacking-NASSA-with-HTML
@Hacking-NASSA-with-HTML Жыл бұрын
Amazing awesome so cool 😎 content 👍♥️
@tesla1772
@tesla1772 2 жыл бұрын
Can you plz create an series of complete react typescript project including state management and all
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I will :)
@nilankoor
@nilankoor 2 жыл бұрын
Great video as always. And yeah, love the camera setup. Keep making more videos with the facecam.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you!!!
@nilankoor
@nilankoor 2 жыл бұрын
Looking forward to more TypeScript videos as I want to start learning TS.
@iUmerFarooq
@iUmerFarooq 2 жыл бұрын
Wow Man, you look cool. Very helpful tutorial Pedro. Want to see more on React + TypeScirpt. Great effort ;)
@gorkavillar8568
@gorkavillar8568 2 жыл бұрын
Great video Pedro, thanks! I personally can't imagine a project without Typescript, especially if you're working solo 🙌🏼
@SkyrimBeast
@SkyrimBeast 2 жыл бұрын
Why I SHOULD be using TypeScript with React? Because Pedro told me so and that's good enough for me
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
❤️
@faizanahmed9304
@faizanahmed9304 2 жыл бұрын
Thank you Pedro
@elvissam1401
@elvissam1401 2 жыл бұрын
:D keep up the good content Pedro, blessing for you!
@dylangonzales
@dylangonzales 2 жыл бұрын
Why you DON’T NEED typescript: kzbin.info/www/bejne/h4fOgXaYbLKXq7s
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
This video was an april fools joke lmaoo
@learnmakeit9315
@learnmakeit9315 2 жыл бұрын
Thanks! I must learn typescript
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
You can do it!
@hardwired66
@hardwired66 2 жыл бұрын
Yeaaa react typescript tutorial 😍
@pb8655
@pb8655 2 жыл бұрын
Any change you can make an advanced typescript video. The basics are easy to grasp but. I see syntax like “function all the time and I don’t get the angle brackets at all.
@norejudeisa
@norejudeisa 2 жыл бұрын
I think that's generic type, I do dart and I think it's similar to typescript type system
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
There aren't a lot of advanced typescript. I can make a full typescript tutorial for sure, but there aren't a lot to learn if u already know js
@pb8655
@pb8655 2 жыл бұрын
@@PedroTechnologies maybe a small project with react-typescript-redux? i know its a weirdly specific request but I was watching one of the react/redux authors do a code along kzbin.info/www/bejne/b6vchJiGatt7b8U and there are alot of built in types and hooks that i don't quite understand
@pb8655
@pb8655 2 жыл бұрын
@@norejudeisa yea you're right!
@randerins
@randerins 2 жыл бұрын
"cuntry" cracked me up 😅
@longnhat6405
@longnhat6405 2 жыл бұрын
very well deliveried video
@RogerThat902
@RogerThat902 2 жыл бұрын
Very good explanation
@AstraSlade
@AstraSlade 2 жыл бұрын
Nice vídeo pedrin, salve do Brasil sempre acompanho teus vídeos :))
@mahinchowdhury3995
@mahinchowdhury3995 2 жыл бұрын
Good stuff.
@TheDorac1
@TheDorac1 2 жыл бұрын
I like typescript but when using some 3rd party npm packages, some aren't typescript ready, causing issues and I can't find a way to bypass it.
@waleedsharif618
@waleedsharif618 2 жыл бұрын
This !
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I understand your point, and it makes sense for a personal project or anything that won't be used by other people. But you shouldn't be using a 3rd party npm package if they don't support typescript in my opinion
@LoneWolf-ll8kb
@LoneWolf-ll8kb 2 жыл бұрын
@@PedroTechnologies perhaps this should be in the title
@eliuddyn
@eliuddyn 2 жыл бұрын
Great content Brother 🔥🔥
@bongkotsaelo4239
@bongkotsaelo4239 2 жыл бұрын
Thanks, you say it out very clear. The code more looks like java, which is messy. After watching this video, I think I'm in!
@kevinolive
@kevinolive Жыл бұрын
well, you've convinced me to learn TypeScript. Fits better with the languages I know better than JavaScript.
@mabrarhassan
@mabrarhassan Жыл бұрын
Appreciate it. Pretty cool and useful lesson.
@feeltrig8822
@feeltrig8822 2 жыл бұрын
could you make a video on using formik yup for form validation with checkboxes, radio buttons cause there aren't much good videos on it and most of react forms aren't having those fields.
@tegaogheneovo5881
@tegaogheneovo5881 2 жыл бұрын
hey pidro , gang gang you look diffy, sensei
@MOHAMED-AMINE-CHEKROUNI
@MOHAMED-AMINE-CHEKROUNI Жыл бұрын
I learn a lot from you, Thanks
@vantung2210
@vantung2210 2 жыл бұрын
Thanks for your video
@alasassi960
@alasassi960 2 жыл бұрын
can you make video what should you know before getting a first job with no experience thanks
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Yes!
@westernpigeon
@westernpigeon 2 жыл бұрын
i know i’m late to the vid, but i would love if you could make a video on how to use the Stripe API
@common_era_being
@common_era_being 2 жыл бұрын
You are super bro... keep it up 💯
@stackoverflowlurker3057
@stackoverflowlurker3057 2 жыл бұрын
Which color theme are you using? Also, what is the difference between type and interface? Been googling for a while and can't find the answer :(
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I think my color theme is electron but im not sure cause im not with my computer rn hahaha Types and interfaces are very similar nowadays since you can describe an object with a type. I generally use types when i want to describe a single variable that cab have two different types, for example: type Age = number | string; Interfaces are better for describing objects!
@shinigamiryuk786
@shinigamiryuk786 2 жыл бұрын
Great video😊
@adityaj21
@adityaj21 2 жыл бұрын
awesome video
@orarbel167
@orarbel167 2 жыл бұрын
does it matter if the file extention is .ts or .tsx ? and thank you for the great video
@chirilcugureanu1853
@chirilcugureanu1853 2 жыл бұрын
Nah, it's mainly just a personal preference
@blackbones425
@blackbones425 2 жыл бұрын
.ts => pure typescript. .tsx => file with JSX
@malamhari_
@malamhari_ 2 жыл бұрын
If you use JSX in .ts files TypeScript will yell at you
@mirkosedda3196
@mirkosedda3196 2 жыл бұрын
U can use the ? yourself in react when accessing object and the app will not break if one of the values is null 😊
@NicoRTM
@NicoRTM 2 жыл бұрын
Yup, and Typescript will remind you to use it when a value can be null
@johnadepelumi93
@johnadepelumi93 2 жыл бұрын
Nice camera Pedro. Would love to connect with you on Twitter if you don't mind. Great tutorials, I've learned a lot from the tips you share from time to time.
@thalia.c
@thalia.c 2 жыл бұрын
brabo demais 🔥
@aditithakur1862
@aditithakur1862 Жыл бұрын
I have learned React with Javascript and all it’s functionality with core JS. Will it be difficult to now switch it to Typescript? And what in general changes in React with TS compared to React with JS
@PanosPitsi
@PanosPitsi Жыл бұрын
its the same but with types it actually makes you way faster
@redaelouahabi731
@redaelouahabi731 2 жыл бұрын
the safety option (?.) exists also in JS 😉 thanks 4 the video
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you liked it! Yeah, i meant more that with typescript it will let you know if you need ?. in a possibly null object when in JS it doesn't
@antonyefanov
@antonyefanov 2 жыл бұрын
amazing video
@ArisAris-fs1ip
@ArisAris-fs1ip 2 жыл бұрын
Good afternoon, Please give me your help! S O S So im starting my pizza restaurant website for my portfolio, with full e-commerce features. The question is this: The owners admin dashboard, where he receives the food orders and editing , putting or delete products, and the customer's interface, where he enters and orders food, send order and pay.
@The_Awakened_Hybrid
@The_Awakened_Hybrid Жыл бұрын
AWESOME tutorial! Obrigado bro!
@ajitshaw1936
@ajitshaw1936 2 жыл бұрын
Bro Can you make a video on Middleware with redux js. Keep Up the good Work 😍
@faisalamin001
@faisalamin001 2 жыл бұрын
Please start NEXT.js or Backend Thanks a lot 🙌
@friendlyapk
@friendlyapk 2 жыл бұрын
You look nice today handsome guy!
@Pareshbpatel
@Pareshbpatel Жыл бұрын
A great video that introduces us to using Typescript with React. Thanks, Pedro {2022-11-13}
@codefingers8957
@codefingers8957 2 жыл бұрын
i am your 647th view 92nd like and 17th comment =)
@4444-c4s
@4444-c4s Жыл бұрын
8:45 imp pt.
@victorvondoom2350
@victorvondoom2350 2 жыл бұрын
so are you saying never to use pure javascript with reactjs ?!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I do hahaha but only in my videos because it makes sense cause not everyone knows ts. But no matter what i decide to build outside of youtube projects, i will always use typescript!
@Randomguy48279xyz
@Randomguy48279xyz 2 жыл бұрын
👍
@love_hunter_coc
@love_hunter_coc 2 жыл бұрын
Nice ty u
@munashe_dev
@munashe_dev 2 жыл бұрын
Typescript fronted , golang backend === 🚨
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
That's what I use at my job, it works really well!
@markopolo2224
@markopolo2224 2 жыл бұрын
you look like sennyk4
@fabianofrank4785
@fabianofrank4785 2 жыл бұрын
Are you Brazilian?
@slingyy
@slingyy 2 жыл бұрын
que canal bom 🤠
@kabagambedaniel2468
@kabagambedaniel2468 2 жыл бұрын
let me learn typescript
@BlobBlobkins
@BlobBlobkins 2 жыл бұрын
If you need typescript with React, then you are coding wrong. There are porpTypes and other tools out of the box.
@sc0or
@sc0or 2 жыл бұрын
This is not absolutely necessary. I type fast enough and do not need in additional training. Data must be simple. Simple data does not need types. When you start to create monstrous generics, you can throw your code in a trash can away. I mean it. React means strings, numbers and handlers (with strings and numbers) in parameters. All other more complex things must be incapsulated in your code, and to create types for them just for yourself looks like a "mental disordering" -) PS When you pass objects, that means a not enough decomposition.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
React also means objects and complex data types. How are you going to create an application without guaranteeing that ur handling ur data correctly? I get your point, but I feel like we always think we are able to perfectly write typesafe code when in reality it doesn't matter how long we have been coding for cause we will make mistakes. Using typescript in my opinion is being respectful towards your users and recognizing that not everyone is perfect. I love this debate hahaha thank you for giving ur opinion on this! I plan on making more opinionated videos like this cause it helps us all learn from each other, even if we disagree :)
@sc0or
@sc0or 2 жыл бұрын
@@PedroTechnologies I used to use f... Angular for 5 years, then TS/React for 3 years on a big project, and then - 3 years of a pure JS/React on 4 about simultaneous projects. There was no a day I regretted. I breath now. Team sizes are about the same. May be because we don't use redux anymore... =)
@AlesaGillespie
@AlesaGillespie 2 жыл бұрын
TypeScript meio que vai ser o padrão futuramente. Mas eu não vejo, sinceramente, motivo pra isso existir. Primeiro que, eu escolhi estudar uma linguagem não estatica e agora o mercado quer enfiar esta bosta de tipagem em um conceito que, de inicio, era pra ser ''dynamically typed". Mó chato ficar declarando interfaces. Só complicam a vida no frontend com essas pohas. Sou a favor do exterminio do TypeScript e o PyScript.
@КлиментийКараваев-у8з
@КлиментийКараваев-у8з 2 жыл бұрын
Fuck TypeScript all my homies use Test Driven Development
@Pareshbpatel
@Pareshbpatel Жыл бұрын
{2023-04-13}
@alexdefaro
@alexdefaro 2 жыл бұрын
Nah... Still not convinced brother 😁
@anselmoribeiro8138
@anselmoribeiro8138 2 жыл бұрын
In my opinion Typescript apps needs to much work. So it sucks
@Jakub-Putaj
@Jakub-Putaj 2 жыл бұрын
so basicly it deepends on project, i'm honestly thinks that force to use typescript in every project is not the best way to create apps because not every app need to have typescript
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
It takes a lot of work in the beginning, but when you get good at it you will write everything super fast. The benefit outweighs the cost for sure!
@Jakub-Putaj
@Jakub-Putaj 2 жыл бұрын
@@PedroTechnologies i understand but for the projects like landing Pages with animation lib typescript is not a necessary tool
@anselmoribeiro8138
@anselmoribeiro8138 2 жыл бұрын
@@PedroTechnologies Thanks for your effort and I think you should continue to publish videos like this. I don't like typescript, but maybe I'll change my mind in the near fututre.
@mohamedshames2432
@mohamedshames2432 2 жыл бұрын
شكرا يحب
@MohammedAlziko
@MohammedAlziko 7 ай бұрын
😘😘😘😘
@alasassi960
@alasassi960 2 жыл бұрын
can you make video what should you know before getting a first job with no experience thanks
4 Beginner React States Mistakes to AVOID
11:43
PedroTech
Рет қаралды 8 М.
ReactJS Course [13] - Typescript | React Type Safety
27:17
PedroTech
Рет қаралды 25 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,4 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,6 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 39 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 481 М.
The Truth About GraphQL
12:06
Theo - t3․gg
Рет қаралды 101 М.
Learn Typescript with React | Quick Crash Course
16:59
developedbyed
Рет қаралды 97 М.
My Problem with Using TypeScript in 2023
8:15
James Q Quick
Рет қаралды 16 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 632 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 167 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 272 М.
How to Structure and Organize a React + TypeScript App
16:06
Coding Garden
Рет қаралды 16 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,4 МЛН