re: How to get data from an MySQL database in React Native VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I can see my json-formatted data in "/users" but on the homepage it says "CANNOT GET /". I am using ReactJS with Visual Studio Code.
 

That's because we only created the "users" route on this tutorial. Like this:

app.get('/users', function (req, res) {

If you want to create the homepage route, you gotta add the '/' char, like this:

app.get('/', function (req, res) {
code of conduct - report abuse