1

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!

2
  • 1
    There is literally this tutorial on the React website facebook.github.io/react/docs/getting-started.html Commented Jul 13, 2016 at 1:01
  • @JoshuaTerrill Oh good lord. How did I miss that. Thanks for the virtual head slap :P Commented Jul 14, 2016 at 15:46

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.