How to handle function overloading with React Props

前端 未结 0 996
清歌不尽
清歌不尽 2020-12-01 01:17

I\'m a novice in Typescript and I\'m trying to create React components with different variants, IE a Button with a \'foo\' and an \'bar\' variant.

I would like to use

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