Wildhoney / ReactShadow

:beginner: Utilise Shadow DOM in React with all the benefits of style encapsulation.
https://react-shadow.herokuapp.com/
MIT License
1.29k stars 80 forks source link

Remove react-use dependency due to package size #152

Closed lightningspirit closed 1 year ago

lightningspirit commented 1 year ago

The react-use package includes almost 0.5 MB of dependencies which unnecessarily increases the bundle size for this lib. ReactShadow only uses useEnsuredForwardedRef function which is a simple one and could be "copy-pasted" as a standalone function.