-1

How to get or set the query string using React or Gatsby (without using document or window objects):

https://link.com/?color=#fff&theme=light
1
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Nov 17, 2021 at 10:21

1 Answer 1

0

You can use this module for react: https://github.com/pbeshai/use-query-params

for gatsby, you can use this plugin : https://www.gatsbyjs.com/plugins/gatsby-plugin-use-query-params/ it'll wrap your app with QueryParamProvider

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.