DEV Community

Discussion on: Conditional types in typescript react

Collapse
 
benjioe profile image
Benjioe • Edited

Why do you need a Base component instead of html tag ?

Collapse
 
mohdahmad1 profile image
Mohd Ahmad • Edited

because I dont want to repeat myself, its like I want different element but with same props