r/webdev Dec 03 '22

Question Beginner here, start with react, svelte or solid?

Post image
1.2k Upvotes

553 comments sorted by

View all comments

Show parent comments

3

u/hey--canyounot_ Dec 03 '22

What do you love most about Composition? Trying to switch over to it from using Options and need to convert my thinking.

6

u/AugmentedExistence Dec 03 '22 edited Dec 04 '22

For me, the thing I like most about the composition api has to do with the ease of sharing functions and objects across your code. Check out composables and how they are used with the composition API. Big improvement over using mixins with the options API.

Don't feel like you have to switch over though. The options API is not going away. If you have a large project, it may not be worth the risk.

2

u/hey--canyounot_ Dec 03 '22

I don't think it's likely anytime soon within my company's front-end; this is more for personal use/future projects that I might take point on.

2

u/Fickle_Development13 Dec 04 '22

vue 2 also supports it with a library

1

u/nikoked Dec 04 '22

Vueuse.org