I'm hoping you can point me in the right direction for finding out how to deploy a static single page react app to my server. Nothing fancy, no routing, no database--imagine a simple 'hello world' page. What do I need to do to get the react goodness into static files I can upload to my server? Thanks!
-
1There is literally this tutorial on the React website facebook.github.io/react/docs/getting-started.htmlJoshua Terrill– Joshua Terrill2016-07-13 01:01:01 +00:00Commented Jul 13, 2016 at 1:01
-
@JoshuaTerrill Oh good lord. How did I miss that. Thanks for the virtual head slap :PTed– Ted2016-07-14 15:46:28 +00:00Commented Jul 14, 2016 at 15:46
Add a comment
|
1 Answer
Here's a great boilerplate to get started. This will deploy to heroku no problem. https://github.com/alanbsmith/react-node-example Also checkout the react docs facebook.github.io/react/docs/getting-started.html
Basically if using ES6 or JSX you do your build first, then deploy.