1 min read Isuru Nuwanthilaka

Rendering React client-side app on Github Pages

Deploying a client-side React app to GitHub Pages with gh-pages, plus a reusable template repository to start from.

I was keen about how we can deploy simple react app to Github Pages.

I had already seen more sites with Jekyll.

By exploring, I saw now we have gh-pages bundle which creates the build to deploy on Github Pages.

For my react apps, I created this https://github.com/isurunuwanthilaka/react-app template, so I can reuse. You can find the simple script commands in package.json and also need to change some meta data in package.json when deploying.

Sample app I created -> My Salary App

We can do lot more things with Github Pages/ Github Actions

Isuru Nuwanthilaka

AI Solution Architect from Sri Lanka. I build things that scale — GenAI systems, distributed backends and the cloud-native plumbing underneath — and write about what I learn along the way.