How it works...

Once you've saved and closed the file, we need to verify whether we have any syntax errors. Use the following command:

    sudo nginx -t

If everything is OK, you should see:

Finally, we restart our Nginx server:

    sudo systemctl restart nginx

Now we can access our IP without the port, and the React application will work fine:

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.