Closed lightningspirit closed 1 year ago
This commit removes the need to import react-use package as dependency, which reduces the bundle size in 0.5MB (npm reports).
react-use
Since the only function that is used is useEnsuredForwardedRef it was imported directly as a standalone js file into src/hooks directory.
useEnsuredForwardedRef
src/hooks
Closes #152
Nice, thanks :)
This commit removes the need to import
react-use
package as dependency, which reduces the bundle size in 0.5MB (npm reports).Since the only function that is used is
useEnsuredForwardedRef
it was imported directly as a standalone js file intosrc/hooks
directory.Closes #152