Skip to content

"useDisclosure is not a function" #1238

Answered by jrgarciadev
t3db0t asked this question in Help
Discussion options

You must be logged in to vote

are you importing it from v2 package?

import {useDisclosure} from '@nextui-org/react';

https://codesandbox.io/p/sandbox/3tq4rf?file=%2FApp.jsx&utm_medium=sandpack

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@t3db0t
Comment options

@jrgarciadev
Comment options

Answer selected by jrgarciadev
Comment options

You must be logged in to vote
6 replies
@devhasibulislam
Comment options

@print-VarunSharma
Comment options

@phoebe-uw
Comment options

@Vicky522
Comment options

@saehfulamri
Comment options

Comment options

You must be logged in to vote
2 replies
@print-VarunSharma
Comment options

@devhasibulislam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
9 participants