Why are we exporting toast from use-toast.tsx #2368
Unanswered
nenadpejic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the Toast component, when installing manually, in the use-toast.tsx file we have two named exports toast and useToast.
All of the examples below show using the useToast hook to get the toast fn from it. And in the code it seems to be identical.
Is there any specific reason why we are exporting the toast fn separatly, or is it just a convenience thing?
Beta Was this translation helpful? Give feedback.
All reactions