In order to deploy the React app on Shared hosting we need to replace this local address with your domain name.
- Replacing localhost with domain name.
![](https://i0.wp.com/miro.medium.com/max/948/1*8KYP36S5NUnOHV1p059ANw.jpeg?resize=474%2C296&ssl=1)
In package.json file of your react app add a new property “homepage”:”http://yourdomainname.com”
In order to deploy react App on Shared hosting we need to build the app.
2.Building the app using npm run build
In your project directory it will create a build folder and it will contain all your static files for project.
To upload the app on your hosting account you need a FTP account with your hosting address.