i deploy my projects with github pages and im able to do it when im using cdn for react and redux but when i made another roject in react but this time i wanted try using npm. it took awhile to understand but i was able to get up in running with create reactapp. but when i was done and i wwanted delpoy it on github pges, it wouldnt work. So can i still use github pages for my react projects with npm?
1 Like
github pages works only for frontend apps. Using CRA and npm means you have a fullstack app, github pages will not work with that
2 Likes
So, GitHub Pages is mainly used to deploy front-end apps like single-page applications. But, when using CRA and npm, managing deployment on GitHub Pages as the project grows can become more challenging, especially with routing and build issues as @ILM mentioned. For more complex apps, like the full-stack ones, it’s often better to use platforms like Netlify, which provide easier deployment and support for front and backend services. Check out the link below for more reference on deployment using Netlify.
1 Like