skip to Main Content

Reactjs – Why when I set property in a component it starts throwing hydration exceptions Next js

"use client"; const Component = ({ className }) => { const [open, setOpen] = useState(false); const [showNewOrganizationDialog, setShowNewOrganizationDialog] = useState(false); return ( <Dialog open={showNewOrganizationDialog} onOpenChange={setShowNewOrganizationDialog} > <Popover open={open} onOpenChange={setOpen}> <PopoverTrigger asChild>...</PopoverTrigger> <PopoverContent className="w-[200px] p-0">...</PopoverContent> </Popover> <DialogContent>...</DialogContent> </Dialog> ); }; This…

VIEW QUESTION
Back To Top
Search