command to create react app
npx create-react-app my-app
cd my-app
npm start
command to create react app
npx create-react-app my-app
cd my-app
npm start
how to create a new react app
npx create-react-app your-project-name
Deploy React App
npm install gh-pages --save-dev
package.json
//...
"homepage": "http://gitname.github.io/react-gh-pages"
//...
"scripts": {
//...
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
git init
git remote add origin https://github.com/gitname/react-gh-pages.git
npm run deploy
git add .
git commit -m "Create a React app and publish it to GitHub Pages"
git push origin master
deploy react app
npm run build // Build The Project
npm install -g serve // Install Serve Server
serve -s build -l 4000 // deploy the Build Using Serve
how to upload react js project on server
npm install --save-dev ftp-deploy
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us