const container = useRef<HTMLDivElement>(null); return <div ref={container}>{children}</div>;. Note that we initialise useRef with null ...
確定! 回上一頁