react three fibre and next.js using three-stdlib Adapted from examples in ssr here Starter template for r3f + next.js + styled-components