Answers for "run react app on different port"

17

set port in react app

//in package.json

"start": "react-scripts start"
t0
//linux
"start": "PORT=3006 react-scripts start"
or 
"start": "export PORT=3006 react-scripts start"
//windows
"start": "set PORT=3006 && react-scripts start"
Posted by: Guest on September-25-2020
1

run react app in different port

PORT=3001 npm start
Posted by: Guest on September-21-2021

Code answers related to "run react app on different port"

Code answers related to "Javascript"

Browse Popular Code Answers by Language