DEV Community

Discussion on: How to get data from an MySQL database in React Native

Collapse
 
ajeb2222 profile image
ajeb2222

Hey sorry if this is stupid question

im trying to capture data from MySQL and graph it using Victory. Already done most of the instruction above and i can see my data on local host but i still can't use the mysql data as the graph reference

this is part of the code to make the chart
Code

i always get this error when i try to run it
Code

i thought your fetch function already make users a variable and i can use it immediately for the another function. Could you tell me what should i do to fix it or point out where i went wrong?