Deploy React Apps with React Router to Github Pages

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 131

  • @michelpomerantzeff1749
    @michelpomerantzeff1749 2 роки тому +7

    Duuuuuude!!! That is gold! Thank so much!!! I have been struggling with this for days now... 3 years later and you're still saving lives with this

  • @harismehboob3557
    @harismehboob3557 2 роки тому +3

    The best video I have seen to deploy the project

  • @pedroafonso2114
    @pedroafonso2114 Рік тому +1

    It worked ! At first glance I thought that your video was outdated because it's from 4 years ago, but your solution worked nice and clean, thank you so much!

  • @elijahdr
    @elijahdr 4 роки тому +2

    What the hell, why isnt this more popular! Thanks man

  • @waqarmughal1573
    @waqarmughal1573 2 роки тому +1

    I can't thank you enough!! I have been struggling with this issue since past week. May god bless you brother.

  • @sirius8ly
    @sirius8ly 5 років тому +17

    Dude!!! Thank you soooo much. I have been struggling with this for days. This worked for me. Thank you.

  • @EricaFord-j9d
    @EricaFord-j9d Рік тому +1

    Thank you so much!!! I am really new to developing and I could not figure out what I was doing wrong until I came across your video. Thank you again, you're amazing. You won over a new subscriber. :)

  • @zgregz2456
    @zgregz2456 2 роки тому

    OOOOOMG, thanks brother, I already had days suffering with the application not rendering, gained another subscriber.

  • @lucasloopst9010
    @lucasloopst9010 Місяць тому

    Heeeey, you saved my life! Now my site it's running correctly, thx!

  • @christopherartrip3746
    @christopherartrip3746 3 роки тому +1

    okay so i had so much trouble getting my portfolio site up and i started to think it had something to do with react router, but i couldnt find anyone else talking about it. Let me just say, for about 4 hours I was debating my career :). Thank you for this :D

  • @mustafakosmaz178
    @mustafakosmaz178 3 роки тому

    I regret to refuse your video at first time. now i ve published my site on github. thanks very much

  • @wahabrehman6848
    @wahabrehman6848 4 роки тому +1

    This channel criminally underrated

  • @chaitanyabajpai9647
    @chaitanyabajpai9647 8 місяців тому

    Thank you so much, using the hash router fixed my issue in one go

  • @Abrahhhhh
    @Abrahhhhh Рік тому +2

    Amazing video man better explanation than most overated "Pro coders" you did an amazing job man I am proud off you I subscribed to your channel!!!😀

  • @nicklandreth2527
    @nicklandreth2527 4 роки тому +1

    This is the second video of yours I have watched. You are a very good teacher. Way to break things down.

  • @ericadeguzman6799
    @ericadeguzman6799 2 роки тому +3

    Thank you! Super easy to follow. Everything else I looked at made it seem more complicated than it is.

  • @kamranloki3792
    @kamranloki3792 4 роки тому

    bro how long have I been looking for this video

  • @nagucool93
    @nagucool93 4 роки тому +2

    Thanks a lot. This really is a time saver. Have been struggling since past two days to deploy

  • @sebastianstephenson3176
    @sebastianstephenson3176 2 роки тому

    thank you so much
    you have no idea how much i appreciate that.

  • @ReginaScer
    @ReginaScer 2 роки тому

    Thank you very much. I was searching for routes!

  • @TrixyJ
    @TrixyJ 4 роки тому

    Felt frustrated after not finding a solution for days. Thank you for this video :)

  • @egzonberisha9906
    @egzonberisha9906 3 роки тому

    Thank you man, i was strugling a looott cuz I didn't know that there are two differente types of deploying react app with router and without it

  • @rushabhdave6648
    @rushabhdave6648 2 роки тому

    I thank You for sharing this valuable information was struggling a lot to find my problem's solution...
    You just made my day thanks brother

  • @ericmuhire9995
    @ericmuhire9995 2 роки тому

    Thank you brother. Very helpful 🙂. I was struggling for a couple of hours.

  • @subhrajitdey2148
    @subhrajitdey2148 2 роки тому

    This was extremely helpful. I appreciate your effort. Thank you

  • @giodelacruz9437
    @giodelacruz9437 2 роки тому

    It's 2022 and this still saved my arse

  • @tecnosebastube9761
    @tecnosebastube9761 3 роки тому

    you should have more views! This video was very helpful

  • @casafurix
    @casafurix 3 роки тому

    forever and eternally grateful. thank you.

  • @alizaidi5610
    @alizaidi5610 3 роки тому

    Perfectly explained!

  • @adiaguidry3848
    @adiaguidry3848 4 роки тому +1

    Yess!! You saved me so much time!! Thanks for this video!

    • @accimeesterlin
      @accimeesterlin  4 роки тому

      You’re welcome 😉. Glad it saves you so much time.

  • @nihadmehmedovic1911
    @nihadmehmedovic1911 2 роки тому

    Works perfect, thank you !!!

  • @rohangupta6847
    @rohangupta6847 4 роки тому

    Many thanks, man!! Exactly what I was looking for! :D

  • @konstantink1
    @konstantink1 4 роки тому

    Very helpful video that explains in such clear manner on how it is possible to resolve such tricky and not noticeable issue. Thank you so much!

  • @aropar
    @aropar 3 роки тому

    thumbs up for you!

  • @closertothecosmos3519
    @closertothecosmos3519 3 роки тому

    Thank you big time. I am so happy my react website runs ono github now

  • @surajoberai
    @surajoberai 4 роки тому +1

    I have been trying this since yesterday. There is nowhere written use HashRouter instead of BrowserRouter while deploying react app using gh-pages. Thanks for sharing the knowledge.

  • @mateosierrabetancur9625
    @mateosierrabetancur9625 3 роки тому

    just what i needed, thank you

  • @broke4583
    @broke4583 4 роки тому +1

    You are AMAZING!!! This helped me so much!

  • @erikshumkov4848
    @erikshumkov4848 4 роки тому

    Thanks a lot for this video. Easy to follow and works as expected! :)

  • @letsopeneye
    @letsopeneye 2 роки тому

    Thanks buddy... you fix my error

  • @samuele.caruso
    @samuele.caruso 4 роки тому

    AMAZING mate ! U saved my at least 5h :D

  • @demikill_2137
    @demikill_2137 8 місяців тому

    Nice, very helpful)

  • @ksells
    @ksells 3 роки тому

    Such a simple fix, thanks so much

  • @musadanjuma6603
    @musadanjuma6603 4 роки тому

    Thank you so much bro this realllllllly realllllly helps me!!!!!

  • @nguyenquanghuy6689
    @nguyenquanghuy6689 2 роки тому

    Thank you! Super easy to follow

  • @thisMonje
    @thisMonje 3 роки тому

    Mil gracias, me re salvaste la vida. Saludos desde colombia!

  • @joze.rios44
    @joze.rios44 4 роки тому

    masterful my dear friend, greetings from Argentina!

  • @thiagomeneses6373
    @thiagomeneses6373 4 роки тому

    Thanks man! Helped me a lot

  • @medaminefh429
    @medaminefh429 4 роки тому

    You Just Saved Me , Thanks A lot

  • @kukkyou4647
    @kukkyou4647 4 роки тому

    thanq so mmuch sir ji this is really heplfull

  • @princekumarsingh2440
    @princekumarsingh2440 4 роки тому

    Thank you so much bro it's really work for me

  • @wesley18043
    @wesley18043 4 роки тому +3

    the question is why browser router does not work in deploy, and when should we use browser router?

  • @mrtinn2948
    @mrtinn2948 4 роки тому

    You saved me man, thanks!!

  • @vastopolo
    @vastopolo 5 років тому

    Thanks a lot!! Was struggling for a while

  • @jameswebb8397
    @jameswebb8397 4 роки тому

    Great video, subbed!

  • @israeltorres9538
    @israeltorres9538 4 роки тому

    Great Video!!! Thank you for your help!

  • @rushaliasthana1240
    @rushaliasthana1240 4 роки тому

    Thankyouu soo muchh!!! This worked soo well!!!

  • @marcovaleri7279
    @marcovaleri7279 4 роки тому

    Thank you so much for this video

  • @ayhmhamame1333
    @ayhmhamame1333 2 роки тому

    thanks that was very usefull

  • @joelfolske5843
    @joelfolske5843 2 роки тому

    Thank you so much!

  • @webdevshow
    @webdevshow 5 років тому

    Thanks for such a great tutorial!

  • @soumalyasaha8111
    @soumalyasaha8111 4 роки тому

    Thanks Accime. I followed this approach, however I have a different problem. While clicking the navbar it is working fine to navigate to a different page as shown by you, but if it is a button the page can't show up the desired page. Any clue?

  • @SergieArizandieta
    @SergieArizandieta Рік тому

    Nice video, i saw too many videos n configuration en packetjson, base name of the browserrouter, but ty ur explications r so good n be of utility for me

  • @camilovillegas8761
    @camilovillegas8761 4 роки тому

    You the man!

  • @mayanksrivastav1828
    @mayanksrivastav1828 3 роки тому

    Thank u so much Sir

  • @RamGouda-l3s
    @RamGouda-l3s Рік тому

    Thank you so much

  • @nwobodogeorge5370
    @nwobodogeorge5370 4 роки тому

    Thanks. God bless.

  • @piotrszczesniak
    @piotrszczesniak Рік тому

    Great tutorial, thanks a lot!

  • @draganapopovdev
    @draganapopovdev Рік тому

    TNX A LOT!

  • @pickemparty
    @pickemparty 2 роки тому

    Setting the homepage in the package.json file still shows the following message
    The project was built assuming it is hosted at /
    You can control this with the homepage field in your package.json
    I am not sure why its not recognizing the entry i put in the json file and seems to default to /

  • @YetAYou
    @YetAYou 4 роки тому

    If I have authorization above the Router - does it change deployment or it should work?

  • @SumitKumar-co2pm
    @SumitKumar-co2pm 4 роки тому

    Thanks a lot brother

  • @sakshamagarwal6852
    @sakshamagarwal6852 4 роки тому +1

    If you face any error than go to settings -> pages and then change deployed branch to gh-pages

    • @valentinav8585
      @valentinav8585 2 роки тому

      2 years later but this did the trick! thanks

  • @JptickBass
    @JptickBass 4 роки тому

    Thank You!

  • @Feitanxerx
    @Feitanxerx 5 місяців тому

    Ty buddy

  • @hendryprasetya9191
    @hendryprasetya9191 5 років тому

    Thanks dude!

  • @omarmosaad2162
    @omarmosaad2162 3 роки тому

    thanks a lot

  • @jinyoucheng8114
    @jinyoucheng8114 3 роки тому

    Thank you so much. Next.js is also possible?

  • @邱宇瑨
    @邱宇瑨 5 років тому

    Thank you soooooo much!!!!

  • @silkys8343
    @silkys8343 3 роки тому

    Thanks a lot for this video. I have one issue related with my react project that is quotes generator. my quotes generator is working with port 3000 but after deploy its not displaying in the site. pllllllllllllllllllllleeeeeeeeeeeeeeese help me

  • @soufianeodf9125
    @soufianeodf9125 4 роки тому

    thanks man

  • @paragshinde6989
    @paragshinde6989 Рік тому

    I am getting error at git init. It showing that , The term 'git' is not recognized

  • @danielEpifanov
    @danielEpifanov 4 роки тому

    Thank you

  • @shyamsoni5389
    @shyamsoni5389 3 роки тому

    Hi, I am using
    this.props.history.push({
    pathname:`some path`,
    state:{ object :object}
    }) ;
    on handleSubmit click
    And reading the data into routed component like
    this.props.location.state.objectName.field
    This is working fine when I am using BrowserRouter even when i refresh the page i get the values on page BUT when I am using Hashrouter and I refresh the page I get error saying
    Can not read properties of undefined
    Please help

  • @marofe
    @marofe 5 років тому +1

    unfortunately, hashRouter doesn't allows googlebot to rank the page, just the home page will be indexed by google

    • @torrentinocom
      @torrentinocom 4 роки тому

      I thought that google cant index react applications at all ....

  • @sevwolve757
    @sevwolve757 4 роки тому

    Oh, thanks! I lost 1,5 hours for find how make it

  • @Ceba551
    @Ceba551 3 роки тому

    Does this also get rid of any refresh 404 issues when you're not on the landing page?

    • @alejandromalanche6848
      @alejandromalanche6848 3 роки тому

      No it does not, I have this same issue

    • @Ceba551
      @Ceba551 3 роки тому

      @@alejandromalanche6848 yeah turns out you have to use hash router for this to work.

  • @Qwade670
    @Qwade670 4 роки тому

    thx

  • @DubinArtur
    @DubinArtur 3 роки тому +1

    Чуть не обосрался вначале

  • @giulianacecchetto9307
    @giulianacecchetto9307 4 роки тому

    Goddddd i lov u

  • @sufyan2317
    @sufyan2317 4 роки тому +2

    U literally tricked us..
    Simply say "use HashRouter instead of BrowserRouter "...Anyways nice video...

  • @rebelion1
    @rebelion1 4 роки тому

    are you Haitian? I heard the accent plus I saw your name

    • @accimeesterlin
      @accimeesterlin  4 роки тому +1

      Yes I am

    • @rebelion1
      @rebelion1 4 роки тому +1

      @@accimeesterlin oh nice ok. where in Haiti are you from, and do you do full stack developer full-time or frerelancing?

    • @rebelion1
      @rebelion1 4 роки тому

      Im an American Haitian btw

  • @songwright
    @songwright 4 роки тому

    I'm having a problem with this video.
    In your video, the code in your index.js file looks like this:
    import React from "react";
    import ReactDOM from "react-dom";
    import './index.css';
    import App from "./App";
    import { BrowserRouter as Router } from 'react-router-dom';
    ReactDOM.render(



    , document.getElementById("root"));
    When I create a new React app, my code looks like this:
    import React from 'react';
    import ReactDOM from 'react-dom';
    import './index.css';
    import App from './App';
    import reportWebVitals from './reportWebVitals';
    ReactDOM.render(


    ,
    document.getElementById('root')
    );
    Do you see the problem? There is nothing in my index.js file that refers to BrowserRouter or Router. Where am I supposed to put HashRouter? Maybe the problem is that this video is two years old.

  • @jumpman23nith
    @jumpman23nith 2 роки тому

    Thank you so much !!!!!!!!!

  • @keilaurenmaxinedevries153
    @keilaurenmaxinedevries153 2 роки тому

    Thank you!!!

  • @csengerilevente9564
    @csengerilevente9564 Рік тому

    Thanks!!

  • @Jroumani
    @Jroumani 4 роки тому

    Thank you

  • @hasst9261
    @hasst9261 4 роки тому

    Thank you