Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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"

 
PREVIOUS NEXT
Tagged: #set #port #react #app
ADD COMMENT
Topic
Name
3+7 =