DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
tianyiz8 profile image
tianyiz8 • Edited

Hello, i am doing the routing for my website, but only the landing page shows up. Could you have a look? I think the problem should be in index.js, main.js, App.js. Thanks!!
tianyiz8.github.io/personal-website/
github.com/tianyiz8/personal-website

Collapse
 
yuribenjamin profile image
Ibrahim Ragab

Hey thanks for your comment, handling route in react can easly done by using react router package, not by default way as i saw in your app, also read about Single Page App, and declaritive programming
github.com/ReactTraining/react-router
Happy Hacking!

Collapse
 
tianyiz8 profile image
tianyiz8

Hello! Could you be more specific? I did use react-router-dom, and where are declaritive programming and Single Page App? I still have no idea how to make it work.
Thanks!

Thread Thread
 
yuribenjamin profile image
Ibrahim Ragab

if so then why you declare a tag to route
check
reacttraining.com/react-router/web...