create react app change port code example

Example 1: 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"

Example 2: reactjs app change port

"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"

Example 3: react set port

"start": "set PORT=3006 && react-scripts start"

Example 4: create react app theme_color

getstorybook

Example 5: create react app theme_color

npm install --save react-styleguidist

Tags:

Misc Example