If a codebase is using Interface or Types stick to that for consistency.
Interface is design for public API's where consumers can extend if they need to.
Type is some sort of convention in React components props and state for consistency because it's more a constraint.
Personal Notes : docs.google.co...
Code : github.com/eul...
.
.
.
.
.
.
#react #typescript #javascript #business
Негізгі бет React & Typescript : Interface vs Types
No video
Пікірлер