Mutually exclusive props in a React Component

前端 未结 0 1457
后悔当初
后悔当初 2021-01-05 18:22

How do I make sure my functions components props are mutually exclusive, with code completion?

My code:

type Variant =  \'a\' | \'p\' | \'span\' | \'h1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题