I have created an single page app in react js. I run it in localhost it displays content, but when i upload it in cpanel, the content doesn't display. i think problem is in app.js file. The data for content is comming from .js components in react. The app is made just from front-end.
Asked
Active
Viewed 289 times
0
-
Are there any errors on the developer console? Where is the data for the content coming from? If they are coming from an API, is the API call succeeding? – Jory Geerts Feb 05 '20 at 10:15
-
(http://besnik.recufe.com/appcibo/) – Ali Feb 05 '20 at 10:20
-
i think is problem in app.js code – Ali Feb 05 '20 at 10:22
-
I just noticed you are hosting the application in a subdirectory on the server. That could be the problem. If you read the answers to https://stackoverflow.com/questions/37396427/how-to-bundle-a-react-app-to-a-subdirectory-on-a-server you should be able to solve this. – Jory Geerts Feb 05 '20 at 10:39