![]() We created React App using create-react-app This command will create a branch named gh-pages this branch host your app, and homepage property you created in package.json file hold your link for a live preview, or you can open the branch setting scroll down to GitHub Pages section you will find this:Ħ- commit and push your commit to GitHub. Git remote add origin Now deploy it to GitHub Pages. Now, create a remote GitHub repository with your app name and go back initialize this Second in the existing scripts property we to need to add predeploy and deploy.Ĥ- Create a Github repository and initialize it and add it as a remote in your local git repository. The first property we need to add at the top level homepage second we will define this as a string and the value will be " is the name of the GitHub repository you created it will look like this : Notice You’ll need to have Node 8.10.0 or later on your local machine.ġ- First create a repository named my-app using create-react-app.Ģ- We need to install GitHub Pages package as a dev-dependency. Make sure you have Node.js and Npm installed in your machine. Install Git in your machine and Set up Git. I will show how to create and deploy React App using create-react-app and GitHub Pages ![]() ![]() ![]() Did you build React app and want to deploy it, following these simple steps you able to deploy and showing the world your amazing app.
0 Comments
Leave a Reply. |