Bind React App Server to Different Port

Last modified: 
Friday, June 8th, 2018

Q: I have created a React App with create-react-app. How do I start up on a port other than 3000?
A: Update the start command in package.json?

  "scripts": {
    "start": "PORT=3010 react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"

The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.