React and Node communication, simple get request?

Hi all,

I am trying to make a simple get request in node for another page on my react app

app.get('/nextpage', (req,res)=>res.send('Welcome to the next page'))

so that when I simply go to xyz.com/nextpage in the url after deployment, ‘Welcome to the next page’ is loaded.

I believe this should be extremely simple, but my research is leading me to all this insane stuff about setting up proxies, and other very cumbersome processes (which are not working for me anyway).

Is there no simple solution?

The answer is npm React-Router