Should props data be received in the constructor? Or is it acceptable to do it directly in the render function?

前端 未结 0 2015
刺人心
刺人心 2020-12-28 18:00

I have a small app that displays a list of things. There are only two components, the main one, and the list component. However, I am passing data from the main app into the

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