DEV Community

loading...

Discussion on: Global state in React with Vue!

Collapse
daksamit profile image
Dominik Aksamit

Vue 3 is also modularized and takes advantage of tree shaking what means the final bundle could be much smaller :)

For example, we could use only @vue/reactivity package for some cases :D

youtu.be/Vp5ANvd88x0?t=1515

Collapse
stereoplegic profile image
Mike Bybee

I was referring to the Bundlephobia sizes for @vue/reactivity (3.7kB min/gzipped) and @vue-reactivity/watch (929B min/gzipped).

Thread Thread
stereoplegic profile image
Mike Bybee

Just an observation. Still a great way to think outside the box, and I meant in no way to take away from your post. That size is in line with some of the better React state management options.

FWIW I think RxDB (which is a comparatively massive bundle no matter what you tree shake and exclude, due to RxJS and currently PouchDB dependencies) is a fantastic state management solution for React.

Thread Thread
daksamit profile image
Dominik Aksamit

Oh, I really missed afterthoughts, you right.
Still nice to see coming unification between js frameworks, like vue composition api alternative to react hooks or new Vue SFC components which are very similar to svelte components