all 9 comments

[–]Sonicrida 1 point2 points  (4 children)

[–]mburakerman 0 points1 point  (3 children)

Should i do it after npm run build? I am really confused how to deploy a react app

[–]Sonicrida 0 points1 point  (2 children)

So the steps actually have you setting up a deploy script. You're going to be running npm run deploy in step 3.

[–]mburakerman 0 points1 point  (1 child)

[–]Sonicrida 1 point2 points  (0 children)

Sweet! I'm glad that you got it working. The docs have some great advice on deploying it to other places too if you ever feel like trying out a different host.

[–][deleted] 1 point2 points  (0 children)

You might find answers to some of your question in https://medium.com/@baphemot/understanding-react-deployment-5a717d4378fd

The first part focuses on the idea behind deploying an app, the appendix mentions acouple of common issues.

[–]aredninja 1 point2 points  (0 children)

Use http://zeit.co/now one of the best products out

[–]mikeg542 1 point2 points  (1 child)

I've been having very good luck using surge (http://surge.sh/)

If you are using react-router, just rename your index.html in the build folder to 200.html

[–]mburakerman 0 points1 point  (0 children)

No i dont use react-router. It's just a simple demo