6 of 10 menu

Checking the React Build

So, we have received the build of our React project. Before deploying it to hosting, it is advisable to check the build on a local computer.

However, you cannot simply open the index.html file in a browser - it will not work. The problem here is with the paths to the static files, which start with / and are thus absolute.

If desired, you can manually change the absolute paths to relative ones, but this is an inconvenient method. It is more convenient to run the project build on a local server.

There are various types of local servers. In the following lessons, we will study several options.

Try opening the index.html file from the build directly in your browser. What will be the result?

hiazencstr