Ted
Ted

Reputation: 14937

How to deploy a static React app

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!

Upvotes: 1

Views: 2275

Answers (1)

ceckenrode
ceckenrode

Reputation: 4703

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.

Upvotes: 2

Related Questions