React: wrap child component in div if it does not return null

后端 未结 0 1059
遇见更好的自我
遇见更好的自我 2021-01-21 19:53

Using React, how can a child component be wrapped conditionally in another element if it is not returning null when rendered?

export const Parent = ({children}) =         


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