@cosdensolutions: Types vs interfaces in React #react #reactjs #reactjsdeveloper #programming #progammer #frontend #devtok #coding #code #codetok #cs

Cosden Solutions
Cosden Solutions
Open In TikTok:
Region: RS
Thursday 15 August 2024 13:18:34 GMT
14115
578
14
12

Music

Download

Comments

aliasnotinuse
ANIU :
angular
2024-10-19 21:43:46
0
booobattt
Assigned :
Rule is, that you use types… until you require a feature of interfaces
2024-08-17 13:03:32
3
eversinceenjoyer
Eversince :
interface is literally more extensible, types don’t have some of the stuff interfaces have i forget exactly what tho, interface was introduced first and is standard
2024-08-17 07:36:10
1
jacosro
Javier :
Types and interfaces are not from React. they come from TypeScript. This explanation may be confusing for a newbie
2024-08-15 14:09:52
24
ramimasar
M K :
This is typescript and has nothing to do with react
2024-08-25 23:56:17
0
soughtopossum
soughtopossum :
I don't think that should use just one or the other tbh. both have their good use cases within a TS repo.
2024-08-18 01:24:33
1
__wahhhhhhhhhhhhh__
BX :
These are more complimentary than interchangeable. types are used within interfaces.
2024-08-16 05:09:53
2
iiankelly
iiankelly :
Types can make Union while Interfaces strict to object. Interface can be merged properties while Types doesn't. The rest are interchangeable, stay consistent
2024-08-17 14:07:22
0
To see more videos from user @cosdensolutions, please go to the Tikwm homepage.

Other Videos


About