That’s great, but you’ll need install the ‘@mui’ library to use it
Well, sure, but that's a single command (yarn add or npm install). And since all you import is the hook, that's all that will be included in your bundle.
yarn add
npm install
I'll try that, but I'll still challenge myself and create a npm package, it will be my first open source project
Of course! And perhaps you’ll find a more elegant implementation. It’s a tricky problem to solve! Good luck! 👍
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That’s great, but you’ll need install the ‘@mui’ library to use it
Well, sure, but that's a single command (
yarn add
ornpm install
). And since all you import is the hook, that's all that will be included in your bundle.I'll try that, but I'll still challenge myself and create a npm package, it will be my first open source project
Of course! And perhaps you’ll find a more elegant implementation. It’s a tricky problem to solve! Good luck! 👍