Hi I want to use the map function to iterate over my data and populate a table in React. Using State I set my variable to an empty array but when I come to Map it the code is unreachable and I have no idea why.
Note: If I map an individual object in the constructor it works perfectly.
Updated
SOLVED! _ Sorry guys - My Mistake - I missed the second render() {
which obviosly caused the code to become unreachable
Eriks Solution Worked but the Get Request is Still not firing - I understand that is a seperate issue...
How do we clean up this post? I'm just new here?