TypeScript proptypes check in React component not working as expected

前端 未结 0 725
遇见更好的自我
遇见更好的自我 2021-01-24 18:05

I have a component that I want to pass an array of specific React components that I wish to render in a list. I want to allow:

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