Skip to main content



Deploy Your React App To GitHub Pages

GitHub is not only popular for hosting repositories but also you can host your websites. And it absolutely free. Following are the steps to host your React js App to GitHub.
Create a GitHub repository.Open Terminal (or CMD) on your project folder.Run these commands: npm run build . A build folder will be created inside your project.Open package.json using any editor of your choice.Paste this line of code:"homepage": "http://<username><myapp>". Change "username" with your GitHub username and "myapp" with your repository name.Now the file will look something like this: Add these lines of code to package.json"predeploy": "npm run build","deploy": "gh-pages -d build"Now the file will look something like this: Save the file after editing.Run this command on the terminal (or CMD) npm install --save-dev gh-pages .Now you should see these lines added to your package.json
Lastly, run this …

Latest posts

Your Ip Address Has Changed. Please Log In Again { Cpanel } Problem [ Solution ]

How To Deploy React Js App - Heroku

How To Move Active Window Using Three Fingers In Mac

How To Run Glut And Opengl On Xcode

How To Download And Install Spotify From Play Store

Lanchat - 2.0 Android Application

Blog Fetcher [ BETA 1 ]

Christmas Tree Generator


How To Unsubscribe Channels All From Youtube (Using Console)