You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useState hook only works in a client component. To fix, mark the file (or its parent) with the "use client" directive.
import { useState } from "react";
import { IoCopyOutline } from "react-icons/io5";
import Lottie from "react-lottie";
import { cn } from "@/lib/utils";
import { BackgroundGradientAnimation } from "./GradientBg";
import GridGlobe from "./GridGlobe";
import animationData from "@/data/confetti.json";
import MagicButton from "./MagicButton"; ```
The text was updated successfully, but these errors were encountered:
De-Silva-Madhushankha
changed the title
importing a component that needs useState
importing a component that needs useState in BentoGrid.tsx
Dec 20, 2024
useState
hook only works in a client component. To fix, mark the file (or its parent) with the"use client"
directive.The text was updated successfully, but these errors were encountered: