You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just using react-amphtml to transform all the tags that amp has to Components. I'm not implementing the logic that the ampreact example has. In that case, I'm using the config that with-styled-componentshas. More specifically, like this:
From what I can tell from your code, your AMP pages won't work because you aren't adding the script tags for AMP to load. Most of the logic in ampreact is there to help load the boilerplate required for AMP.
I'm just using
react-amphtml
to transform all the tags that amp has to Components. I'm not implementing the logic that theampreact
example has. In that case, I'm using the config thatwith-styled-components
has. More specifically, like this:So, my question is, I'm just using
react-amphtml
to use the amp tags as components, something like this:Believing that Next.js will care all about SSR with AMP. Is this a good practice?
The text was updated successfully, but these errors were encountered: