0

Is there an easy way of using create-react-app to create a static AMP Landing Page? They can easily be created with NextJS. The issue is that our current website is already built with CRA and migrating to NextJS would be difficult.

There are some outdated resources available (e.g. Google AMP with React), but they do not take into account current developments, both in regard with CRA and AMP (such as amp-script).

Thanks.

samurai jack
  • 401
  • 1
  • 7
  • 10

1 Answers1

1

No, CAR is client-side-rendering by default e.g. javascript run and render pages. On the AMP page we can't add react or any regular custom javascript so we can't render the page on the client-side with react. The alternative solution is next.js, next.js can export AMP pages with react. (SSG or SSR)

Masih Jahangiri
  • 9,489
  • 3
  • 45
  • 51