Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install hooks seperate from each other #2520

Closed
dennisfrijlink opened this issue Sep 13, 2023 · 2 comments
Closed

Install hooks seperate from each other #2520

dennisfrijlink opened this issue Sep 13, 2023 · 2 comments

Comments

@dennisfrijlink
Copy link

dennisfrijlink commented Sep 13, 2023

Hi, I love the amount of useful hooks react-use contains. Now I've seen you can install them easily with the npm-package react-use but it is not the smallest one and you'll never use all of the custom hooks in a project. Is it possible to install the hooks seperate from each other (like for example components in Radix UI).

Or is this not necessary because the hooks you don't import inside the project (React, Next, Remix or whatever React based project) are not included at build time?

@childrentime
Copy link

@dennisfrijlink The unused hooks will not be imported, so there's no need to worry.

@dennisfrijlink
Copy link
Author

Good to know!. Thanks @childrentime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants