DEV Community

Discussion on: Understanding TypeScript

debs_obrien profile image
Debbie O'Brien Author

hey, thanks for the reply and detailed answer. looks good. I still havent dived into intrinsicElements yet so will take a look at them. And you're right. I need to use children more. My next post will be on children. As for variation yeah looks good with the btn- which makes it clear why it's there. My quick example is probably not that useful and I do have it in production with a function that creates the classname depending on the prop passed in but that was taking it one step further. so much to learn...... :) thanks again