I have been googling all over the place and couldn't find an answer that matches my current knowledge, so I hope someone can educate me a bit on this matter.
I made an React SPA through the create-react-app command. Now I want to deploy this to a hosting. My friend has a reseller hosting with cpanel, and the hosting company told me they have nodeJS enabled.
I tried building it and then simply copy-pasting it, but then the routing doesn't work. I read stuff about the server needing to run the javascript on server side and then I read about NodeJS and Express. But after this I am just getting more and more confused.
At first I thought express is something like a local server which you upload with all your files, but then I see command lines about running it on the server and such. So I am completely at a blank at this point.
How am I supposed to deploy my react app to a hosting (that has nodeJS enabled)?
I will keep this post close by, so I will respond almost directly. Feel free to ask anything, cause I can understand that the given information might be lacking. But I don't know what information I should be giving, so I will do this on demand.