Answer
athifbinu opened this issue · comments
The .map function is only available on array.
It looks like data isn't in the format you are expecting it to be (it is {} but you are expecting []).
eg : this.setState({data: data});
Invalid issue, closing.