How To Deploy A React App(with React router) to Github Pages (Simplest Way)

  Рет қаралды 26,341

What About Coding

What About Coding

Жыл бұрын

🔴Connect with me 1 :1 -
➜ topmate.io/himanshushekhar
Hi Guys,
In this video, I have explained step-by-step how you can host your reactjs project/website on GitHub using gh pages for free.
Article link -
whataboutcoding.com/host-reac...
React gh pages issue fixed -
www.anycodings.com/2022/01/re...
Hope you guys found it helpful.
Main Channel
➜ / himanshushekhar020
➜Say hi -
Instagram - / himanshu.create
➜Contact - methimanshu020@gmail.com
➜About me
Hi Guys, thanks for tuning in. I am a software developer, having 3+ yr of experience in the IT industry. I like teaching and creating content, so why not create it upon my profession and daily lifestyle.
You'll either find my videos educational or entertaining, sometimes both🤗
🙏 Thanks for your love and support. It means a lot to me.❤️
Tags
------------------------
deploy react app to github pages with yarn,
how to deploy react app to github pages youtube,
github pages showing readme react,
github pages react app blank,
how to update react app on github pages,
github pages react router,
deploy react app to github pages 2021,
npm run deploy gh pages not working

Пікірлер: 95
@sameeramansoori3831
@sameeramansoori3831 12 күн бұрын
thankyou sooooooo much bhaii i am facing problem from 5 hours now i get the solution its work for me
@abcxyz5618
@abcxyz5618 Жыл бұрын
Thank you very much bro . Its worked for me . Grow ahead
@KrishnaKumar-qx1mk
@KrishnaKumar-qx1mk Жыл бұрын
Super , after several attempts i thought to i should stop but i tried one last time and it was a success thanks
@tahsinhimu_
@tahsinhimu_ 4 ай бұрын
I really can't thank you enough bhai! I was looking for the solution for a very long time and finally got it for you.
@whataboutcoding
@whataboutcoding 4 ай бұрын
superglad it helped
@vitthal8177
@vitthal8177 10 ай бұрын
Thank you so much bro. Keep creating such informative videos. My Best wishes for Your upcoming KZbin Journey.
@whataboutcoding
@whataboutcoding 10 ай бұрын
Thnx alot
@mohitmishra2706
@mohitmishra2706 Жыл бұрын
Thank you sir you are good. i spent lot of time but couldn't understand problem. you solve this problem thank you once again.
@AliMurtaza-uh6wx
@AliMurtaza-uh6wx Жыл бұрын
Thanks I am facing this issue from last night after watching your video my issue resolved by using 1st way. 😊
@whataboutcoding
@whataboutcoding Жыл бұрын
Glad it helped
@MihirPatel_Mp
@MihirPatel_Mp Жыл бұрын
Thank you so much, You saved my time.
@MohdSalman-sq8zz
@MohdSalman-sq8zz 9 ай бұрын
Thanku so much you solve my 4 months old issue !
@tusharborse6392
@tusharborse6392 Жыл бұрын
great help brother. thank you so much
@RBSTREAMS
@RBSTREAMS 11 ай бұрын
thankyouuu so much this works just great!!
@satishv1994
@satishv1994 Жыл бұрын
Bro very good and detailed explanation... Please make more videos on react js based on real life projects
@whataboutcoding
@whataboutcoding Жыл бұрын
Sure
@sameenashaik6193
@sameenashaik6193 Жыл бұрын
Am learning react js...thanks bro
@yagniktalaviya2146
@yagniktalaviya2146 Жыл бұрын
Thankyou from deep down from my heart!!!!
@whataboutcoding
@whataboutcoding Жыл бұрын
Thanks alot
@gaddammanoj6852
@gaddammanoj6852 5 ай бұрын
Thanks a lot man. Tutorial has really been a great help
@whataboutcoding
@whataboutcoding 5 ай бұрын
Glad it helped
@pratyushkumar8029
@pratyushkumar8029 8 ай бұрын
Thanks You lot ....3 setp works ...Thaks A lot 🔥🔥🔥🔥🔥🔥🔥🔥
@adarshkadam3012
@adarshkadam3012 4 ай бұрын
Thanks a lot bro, thank you 😊
@ankitkushwaha99109
@ankitkushwaha99109 Жыл бұрын
Thanks for my problem solution .
@inderpalsingh3387
@inderpalsingh3387 Жыл бұрын
simple replace "BrowserRouter' with "HashRouter" without touching anything else and deploy your application using "npm run deploy". It works like a charm.
@Sk-py
@Sk-py Жыл бұрын
Does doing so affects our react app or routing paths???
@SpragginsDesigns
@SpragginsDesigns 2 ай бұрын
Like a charm! Thanks
@EvertsM
@EvertsM Жыл бұрын
Thank you for this. I searched on google for a long time, how to fix the blank page on launching the site. HashRouter did not work for me. What helped was adding basename to and adding exact path to my Route. Thanks again!
@whataboutcoding
@whataboutcoding Жыл бұрын
glad it helped.. no worries
@mjtech4243
@mjtech4243 4 ай бұрын
Can You help me regarding this?? Bro please
@hamzailyas8632
@hamzailyas8632 Жыл бұрын
Very Helpful ❤
@whataboutcoding
@whataboutcoding Жыл бұрын
thankyou
@ronyahmed320
@ronyahmed320 Жыл бұрын
Thank you bro.. i was also wasting lots of time with deploying react app on gh-pages. I tried lots of time, I even deleted node-modules folder but everytime I was getting a black screen. after watching 8-9 videos, then this video come.. And you solved my issue . Thanks again
@whataboutcoding
@whataboutcoding Жыл бұрын
glad it helped
@subhajit99motivation
@subhajit99motivation 11 ай бұрын
Thanks Himanshu, I searched a lot of places and finally your video helped.😇
@tringuyen4601
@tringuyen4601 Жыл бұрын
thank you so much pro.
@guruprasad_suvarna
@guruprasad_suvarna 2 ай бұрын
Thanks man❤️❤️
@tusharsingh1386
@tusharsingh1386 11 ай бұрын
thanks for the video. thik hai
@deepakkewalramani08
@deepakkewalramani08 Жыл бұрын
Great explain
@shekharhans1644
@shekharhans1644 Жыл бұрын
Thank you so much
@alanerriu8213
@alanerriu8213 Жыл бұрын
En el video mas random del planeta, encontré la solución. Gracias amigo.
@desiboi2559
@desiboi2559 Жыл бұрын
Thanks for Brother building a react app is harder but deploying it is a real pain in d ass!!finally i deployed tqs man!!❤❤
@whataboutcoding
@whataboutcoding Жыл бұрын
Glad it helped
@nicobarbieri
@nicobarbieri Жыл бұрын
That's great! This video was a great help! Thank you! I've a question too: I noticed that if I refresh the page when I'm not on the home path (ex: .../posts) and I refresh the page it doesn't work (the 404 github page shows up). There's any solution? thank you
@celinerouaire9586
@celinerouaire9586 11 ай бұрын
Hellooo ! I have the same issue, did you find a solution ?
@ckaycodingclasses523
@ckaycodingclasses523 Жыл бұрын
very very thank you brother
@whataboutcoding
@whataboutcoding Жыл бұрын
Welcome🙂
@izuodoh2909
@izuodoh2909 Жыл бұрын
How can I do this with react router v6 because it is not working for me please help
@adabwithwasiq
@adabwithwasiq Жыл бұрын
bundly of thanks sir, many many thanks
@whataboutcoding
@whataboutcoding Жыл бұрын
Glad it helped🙂
@weektopeak
@weektopeak Жыл бұрын
Using HashRouter solves the react-router-dom issue and all of the page refresh issues in a much more elegant way.
@miltongaming1251
@miltongaming1251 Жыл бұрын
Can you please elaborate more abt this solution please?
@sefa_x
@sefa_x 10 ай бұрын
i cloud get only the main page -"/"-, others didn't come while using HashRouter
@satvik0099
@satvik0099 Жыл бұрын
Thanku so much ❤️
@whataboutcoding
@whataboutcoding Жыл бұрын
Glad it helped
@joyentertainment9696
@joyentertainment9696 Жыл бұрын
Thanks bro
@sanyamsharma350
@sanyamsharma350 6 ай бұрын
I tried it but and publish the code but now it just showing content of readme file, how to solve it
@digvijaybangari4188
@digvijaybangari4188 3 ай бұрын
Facing the same problem😢
@digvijaybangari4188
@digvijaybangari4188 3 ай бұрын
If you know the solution plzz let me know
@NandiniShiny
@NandiniShiny Жыл бұрын
thank you brother
@whataboutcoding
@whataboutcoding Жыл бұрын
Glad it helped
@NandiniShiny
@NandiniShiny Жыл бұрын
@@whataboutcoding sir first it worked and now again it showing empty page .I don't know why,,Thank you for responding .
@deepeshzagade8892
@deepeshzagade8892 Жыл бұрын
Hey Himanshu thankyou for this tutorial, I have a querry - suppose i deployed my reactapp using github and then i have made some changes in my react app (suppose introduced a new component ) and i want this changes to be reflected on deployed site as well . So what can we do for this.
@whataboutcoding
@whataboutcoding Жыл бұрын
Yes .. just push it into the branch.. it will reflect..
@tr397
@tr397 Жыл бұрын
Just run -"npm run deploy" Again, then it will be ok.
@whataboutcoding
@whataboutcoding Жыл бұрын
@@tr397 yes.. but safe side push those changes to github as well
@mdabutorabkhan3370
@mdabutorabkhan3370 Жыл бұрын
can I push frontend and backend into one folder on GitHub ? if no please let me know how to push them.
@whataboutcoding
@whataboutcoding Жыл бұрын
no.. will make another video on that
@saurabh22jan
@saurabh22jan Жыл бұрын
Bhai theme konsa hai ..?
@1gagandeepsingh373
@1gagandeepsingh373 12 күн бұрын
please solve my issue. I followed all the above steps.But, after this my link shows blank .
@TanzilaUsmani
@TanzilaUsmani Жыл бұрын
Thankyou so much it works
@mihirranjanparida1191
@mihirranjanparida1191 9 ай бұрын
Are u Pushing node modules files ,If not then how to ignore that while uploading to github ..Can you Please help ?
@iizeeg
@iizeeg 9 ай бұрын
node modules isn't uploaded github ignores it automatically
@youssefnour-ur2oq
@youssefnour-ur2oq Жыл бұрын
I need it with vite can you help me
@MundiWay
@MundiWay 7 ай бұрын
After wasting 3 to 4 hr its working, only true to fasle thats it -_-
@TaprobanaOrg
@TaprobanaOrg Жыл бұрын
❤❤❤❤
@AkashSingh-qm4jw
@AkashSingh-qm4jw Жыл бұрын
I am getting error like. spawn git enoent at childprocess...... emitted error How to remove this
@md_samir92
@md_samir92 Жыл бұрын
Mera abhi khud dimag kharab hogya sb error hogya to node modules delete karna pada aur phirse install kiye
@smritiagarwal56
@smritiagarwal56 Жыл бұрын
When i open the link it shows the readme file not the application
@CoderHarsh
@CoderHarsh Жыл бұрын
Same 😢
@sameenashaik6193
@sameenashaik6193 Жыл бұрын
Basename sab aad kardi phir b pages blank hai can u pls help me
@whataboutcoding
@whataboutcoding Жыл бұрын
Share your code repo..
@JyotiSharma-wb1vy
@JyotiSharma-wb1vy 11 ай бұрын
@@whataboutcoding I am using react router v6 and getting a blank page
@ankitrawat4834
@ankitrawat4834 9 ай бұрын
same issue can u tell me how to resolve it @@JyotiSharma-wb1vy
@SSC_VLOGS_24
@SSC_VLOGS_24 6 ай бұрын
​@@JyotiSharma-wb1vywhat
@adityajha5238
@adityajha5238 11 ай бұрын
Bro making youtube video by watching youtube videos🤣
@andrewmoney1731
@andrewmoney1731 Жыл бұрын
use english for heaven sake
@zebikazi2252
@zebikazi2252 Жыл бұрын
Thanks alot bhaii 🤍
@sumitkumar7679
@sumitkumar7679 Жыл бұрын
i was stuck in this Browser Router Problem , Thanks a lot bro , it finally worked out. Took me 36 hr to reach your video ,FINALLY !!!🥲 and also you earned a subscriber
@whataboutcoding
@whataboutcoding Жыл бұрын
Super glad it helped. Also i think i should work more on seo so that people can reach to me faster.
@SaurabhGangamwar
@SaurabhGangamwar 7 ай бұрын
Thank you so much
How To Deploy A React App To Github Pages (Simple)
10:00
PedroTech
Рет қаралды 226 М.
How To Host React JS Website Live for Free using GitHub in 2020
12:37
Thapa Technical
Рет қаралды 200 М.
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 34 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 107 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 20 МЛН
Learn CRUD using React JS | CRUD Operation Crash Course
1:13:04
What About Coding
Рет қаралды 90 М.
Deploy React Apps with React Router to Github Pages
7:29
Esterling Accime
Рет қаралды 25 М.
How to deploy react app to production
14:51
Chai aur Code
Рет қаралды 58 М.
Github Actions CI/CD - Everything you need to know to get started
12:21
How to deploy a Vite / React application to GitHub pages
8:11
idlefreak01
Рет қаралды 20 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
✨GitHub Magic: Upload Your Projects and Launch a FREE Website in Minutes! 🚀
28:52
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 34 МЛН