Git Product home page Git Product logo

Comments (5)

gatinhap avatar gatinhap commented on June 24, 2024 2

@deantork-sc, thanks, for me it worked as well!

from spa-github-pages.

gatinhap avatar gatinhap commented on June 24, 2024 2

@lucharo - you can have a look into my repo where I use it - https://github.com/gatinhap/magdak and the specific file - https://github.com/gatinhap/magdak/blob/main/src/main.jsx.
Instead of wrapping my <App/> in BrowserRouter, I wrapped it in HashRouter and that's all :)

from spa-github-pages.

lucharo avatar lucharo commented on June 24, 2024 1

Thanks for the reply I made it work in the end. I was confused at the fact I couldn't serve my builds folder with serve -s build when my package.json included my GitHub pages url as the homepage field but then I realised despite that the site does build correctly in gh pages itself 🎉 https://luischaves.xyz/recipe-portfolio https://github.com/lucharo/recipe-portfolio

from spa-github-pages.

lucharo avatar lucharo commented on June 24, 2024

Do you have examples of how to achieve this? @deantork-sc @gatinhap

from spa-github-pages.

stxgao avatar stxgao commented on June 24, 2024

Agree that this should be mentioned as an alternative.

However, I wanted to add that I came here from my HashRouter implementation, since I wanted more shareable links (without the /#/ prefixing all my routes).

from spa-github-pages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.