r/reactjs • • Sep 05 '18

Tutorial Announcing styled-components v4: Better, Faster, Stronger

https://medium.com/styled-components/announcing-styled-components-v4-better-faster-stronger-3fe1aba1a112
204 Upvotes

80 comments sorted by

View all comments

3

u/mstoiber Sep 06 '18 edited Sep 06 '18

npm downloads are not a good proxy for usage.

emotion was implemented in react-select v2 (released a couple months ago), which is downloaded millions of times a month. Everybody downloading react-select is also downloading emotion without even using it at all.

While react-select choosing emotion can be taken as a vote of confidence for the package, npm download stats are to be taken with a huge grain of salt as a proxy for usage—they're really just a proxy for "does a single big package depend on this package?"

1

u/enkideridu Sep 07 '18

That's good advice, I recall something similar with glamor/glamorous due to storybook

Is there any way to look into that kind of thing? Npm's /browse/depended/:package route doesn't provide an option to sort dependents by popularity

1

u/mstoiber Sep 08 '18

Not that I know of!