Closed Amphaal closed 2 years ago
... so we can leverage Next.js dynamic() without throwing unknown types errors. We'll do something like this to use the wheel within a component :
dynamic()
const Wheel = dynamic<WheelProps>( () => import('react-custom-roulette').then(mod => mod.Wheel), { ssr: false } )
Kinda fixes https://github.com/effectussoftware/react-custom-roulette/issues/57.
We might even consider adding explainations into the README.
... so we can leverage Next.js
dynamic()
without throwing unknown types errors. We'll do something like this to use the wheel within a component :Kinda fixes https://github.com/effectussoftware/react-custom-roulette/issues/57.
We might even consider adding explainations into the README.