How to Change the Local Port in a React Application
By default, when creating a react app with the create-react-app tool, the local server is run on the port 3000. To change it, create a .env file at the root of the project, and type PORT=8080 in it.
Your app now listens on the port 8080.
