How to host a React app on Azure
Creating React apps has never been easier with the advent of tools like create-react-app or next but deploying them is both easy and hard at the same time. The CLI tool can build your React app that can be served as a simple static site since it consists only of a single html file, a single js file and a bunch of static images and style sheets. Building a website Our first step is ensuring we have create-react-app installed on our system. To do that, run the following command: npm i -g create-react-app To create a new project, simply invoke the tool with a project name: create-react-app AzureTest This will create a new folder named AzureTest that will contain all the files used for developing and building your website. Let’s build the project using the following command: npm run build After it is finished, a new folder named build is created which contains everything you need to run the website in production. ...