import { useEffect } from 'react' ; import { Canvas } from '@react-three/fiber' ; import { ResizeObserver } from '@juggle/resize-observer' ; import Scene from './scene' ; import './index.scss' ; const Index = function ( ) { useEffect ( ( ) => { } , [ ] ) ; return ( < div className = "index-page" > < Canvas resize = { { polyfill : ResizeObserver } } > < Scene > < /Scene> { } { } < /Canvas> < /div>); } ; export default Index ;