how add a React Frontend to my Node.js Backend code example

Example 1: express react application

npm install create-app-react-express -g

Example 2: how to connect react to backend

//put inside of package.json
"proxy": "http://localhost:8080"

Example 3: how to play around with backend node js and frontend react

//add this at the end of your players.js :
module.exports = router
//To make this url work without problem
http://localhost:3001/players/list

Example 4: how to play around with backend node js and frontend react

http://localhost:3001/players/list/3