Is it possible to use react-snap with Gatsby? #29617
Unanswered
goodpixels
asked this question in
Help
Replies: 1 comment
-
Hi @goodpixels , Gatsby already generates static HTML. You can see this by inspecting the source of the first URL you access on your site. After that first page is loaded, it is hydrated and turned into a SPA. If you want to disable js entirely in the frontend, maybe have a look at gatsby-plugin-no-javascript. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not 100% happy with my page being rendered with JS. There are some critical pages on my website which should be fully rendered to HTML.
Currently the only way to achieve this is to hard-code the content inside a React component.
I have previously used react-snap on another project (not Gatsby based) and loved it's simplicity and how it just works to produce clean, static HTML files with no JavaScript.
Is there a way to run react-snap post-build with Gatsby website?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions