Giter Site home page Giter Site logo

Comments (4)

enuchi avatar enuchi commented on July 29, 2024 1

Nope, doesn't appear so. Did you check out the link to the google documentation? https://developers.google.com/apps-script/guides/web#web_apps_and_browser_history

Web apps use their own API, google.script.history, to support navigation, whereas react-router uses the native browser API, so they wouldn't be compatible. To navigate to different pages you'll have to write your own "router". See this page for examples on how to navigate to new pages: https://developers.google.com/apps-script/guides/html/reference/history

I should note google.script.history wouldn't work in local development.

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Are you trying to use it with a web app? You would need to figure out how to use with google.script.history.

See https://developers.google.com/apps-script/guides/web#web_apps_and_browser_history

Also see #34.

from react-google-apps-script.

connermurphy avatar connermurphy commented on July 29, 2024

@enuchi So can we not use react-router-dom at all with webapps? Tried using it but my webapp just loads a blank page.
Screenshot_2

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Going to close this but reopen if you have more questions.

from react-google-apps-script.

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.