How to Deploy React Apps in China? (A Step-by-Step Guide)
How to Deploy React Apps in China? (A Step-by-Step Guide)

TLDR; This React.js China tutorial provides you with a step-by-step solution to deploy and host your React.js application in China.


What is React.js?

React originated from an internal Facebook project. Because the JavaScript MVC frameworks available on the market at the time could not meet Facebook’s requirements of Facebook, the set of frameworks aka Reactjs was made internally, which was mainly used on the website of Instagram (a picture social app acquired by Facebook). Later, it was open sourced in May 2013, making it available for everyone to use.

21YunBox provides a very simple React.js deployment method for China. You can quickly and easily deploy your React project to China with 21YunBox in a Static Site environment.

How to Deploy React.js in China?

  1. Signup on 21YunBox
  2. Fork React.js example
  3. Create a Cloud Service on 21YunBox, and allow 21YunBox to access your code base
  4. Use the following values during creation
Runtime Static Site
Build command yarn && yarn build
Publish directory ./build

If you’d like a step by step example, please refer to the video below:

How to deploy the React.js project to the server?



Ready to make your app work in China?

Get Started Questions? Talk to an expert.

Ready to try 21YunBox?

Get Started