/use-animation-frame-nextjs

just a quick test to show a use-animation-frame bug

Primary LanguageCSS

This is a Next.js project bootstrapped with create-next-app.

You will note that package.json lists…

To test…

  • run yarn to install dependencies.
  • run yarn dev. This will spawn a local dev webserver.
  • on localhost:3000, you will see that the SSR build has failed because node has no notion of "window" or the "performance" API
  • halt the dev webserver.
  • edit /pages/index.js. comment line 3, and uncomment line 4.
  • run yarn dev
  • everything should work fine.