wrap component with span or div tag based on logic in react

后端 未结 0 1017
别那么骄傲
别那么骄傲 2021-02-10 07:25

what is the best way for me to use logic to wrap the component? I would like to have another span to wrap Child component if showSpan is true, maybe so

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