标签: reactjs react-native constructor referenceerror
我刚开始反应。当我运行项目时,我收到此错误? 如果我应该提供有关我的问题的更多详细信息,请告诉我。
答案 0 :(得分:1)
哦,我明白了。 试试这个,它应该适合你。
constructor (props){ super(props) this.state = { students: [] } }