ReactJS: What is the correct way to set a state value as array?

前端 未结 3 504
轻奢々
轻奢々 2021-01-22 22:01

I have an array of object that get users data using fetch API. I have tried constructor, create a function, bind it. It didn\'t work. I tried ComponentDidMount and setState, it

3条回答
提交回复
热议问题