streamich / react-use

React Hooks — 👍
http://streamich.github.io/react-use
The Unlicense
41.93k stars 3.16k forks source link

Install hooks seperate from each other #2520

Closed dennisfrijlink closed 1 year ago

dennisfrijlink commented 1 year ago

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 commented 1 year ago

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

dennisfrijlink commented 1 year ago

Good to know!. Thanks @childrentime