importing the package in next js use client components results intor that this error
ReferenceError: document is not defined
import Lottie from "lottie-react";
please improve the package so that it runs in client only smoothly
without me needing to first do this
import dynamic from "next/dynamic";
const Lottie = dynamic(() => import("lottie-react"), { ssr: false });
am using react 19
nextjs 15