How to Deploy a Routed React App to GitHub Pages

By freeCodeCamp.org - 2021-02-22

Description

When we build projects, we want to showcase them online. Instead of buying a domain and taking the time to configure it, it's easier just to host it using GitHub Pages. A project that just uses JavaS ...

Summary

  • When we build projects, we want to showcase them online.
  • Running the command above takes care of building your application and pushing it to a branch called gh-pages, which GitHub uses to link with GitHub Pages.
  • For that we will use a component called Route.
  • For our project, we will use the code below inside of App.js just below the navigation markup.

 

Topics

  1. Frontend (0.34)
  2. Management (0.13)
  3. Backend (0.09)

Similar Articles

Developing and Deploying React Apps using AWS Amplify

By harshcasper - 2020-11-02

As a React Developer, you might have studied about Serverless Architecture and how they are being used to dynamically manage memory and resources allocation allowing rapid scaling of Services. With th

How to Build a Python GUI Application With wxPython

By realpython - 2020-12-14

In this step-by-step tutorial, you'll learn how to create a cross-platform graphical user interface (GUI) using Python and the wxPython toolkit. A graphical user interface is an application that has b ...

How to Build a Serverless Application Using AWS SAM

By freeCodeCamp.org - 2020-10-19

In my previous article, I talked about how AWS Chalice helps you quickly build a Python-based serverless application and deploy it on AWS within a few minutes. While it was a quick and fun prototype, ...