How to render when the function is a character string

后端 未结 2 1681
你的背包
你的背包 2021-01-21 10:36

I\'m having trouble with React\'s Render processing. There is a function called func1 and func2, which is called when rendering (eg: return ()).

2条回答
  •  情歌与酒
    2021-01-21 11:09

    Instead of putting it as element call the function func2()
    But you func2 must return a valid react element.

提交回复
热议问题