DEV Community

Discussion on: Deploy / Host your React App with cPanel in Under 5 Minutes

Collapse
 
alexmojnov74 profile image
Alex Mojnov

Hey there, thank you very much for your article, I was following the steps you described on how to deploy React App on to the shared hosting I have with a2 Hosting, however the app is working but only the static content whatever is dynamic is not rendering throwing an error this.state.data.map is not a function. App is working flawlessly on heroku as well as on my local machine. But as soon as I put it on a2Hosting - it crashes. If I stop dynamic content and replace it with static it works fine. I opened several tickets with them but didn't get any logical answer on why this isn't working. They were giving me advances to put data into array (it is already an array) so I have no clue why this isn't working. May be you have a solution before I get rid of a2 hosting and move somewhere else? Thank you in advnace

Collapse
 
amouratoglou profile image
Agustin Mouratoglou

where does your app fetch the data from?