DEV Community

Discussion on: Thinking about going with PreactJs for dev.to

Collapse
 
ben profile image
Ben Halpern

This is not really an impending move, so I haven't even consulted the team yet. There are more React-knowing folks on the team. I have a cursory understanding of Vue, but would have to do more research. As an outsider, I haven't had an aha moment with Vue but from what I can see, we don't really need router/state management things. We don't do any client-side routing and what I really want is the ability to make small apps-within-the-app that are pretty self-contained.

@pandyzhao you've used Vue, right?

Collapse
 
galdin profile image
Galdin Raphael

I've worked with Vue, and it's awesome. I've never worked with react though.

However, since you mentioned the 3kb file-size and the fact that your team knows react, +1 for Preact πŸ™Œ

Collapse
 
patrickodacre profile image
Patrick O'Dacre • Edited

Vue is very self contained. It aims to be very easy to adopt in increments.

Laracasts offers a free series on Vue, and from a quick watch, you'll see how easy it is to get it working in small chunks.

And if you'll forgive the self-promotion, I have a few tutorials on Medium with some CodePens you can look at.

medium.com/vue-by-example

Collapse
 
andy profile image
Andy Zhao (he/him)

I haven't actually used Vue; my coding bootcamp recently switched to Vue, but I finished being a TA before that happened.

Most of my framework experience is with Angular 1 and 2, but I'm indifferent to it. Happy to try out Vue.

Thread Thread
 
ben profile image
Ben Halpern

Okay cool. Feel free to give it some thought and let me know based on what our constraints are. My gut is that it's not really meant for our type of app.

Thread Thread
 
dorianamouroux profile image
Dorian Amouroux

I think VueJS works great for either SPA or small features within a HTML page. You don't even need to have a complicated WebPack setup. You can import the library and start coding with no-configuration, and in ES5. You can progressively replace the vanilla js with VueJs components.

Thread Thread
 
easrng profile image
easrng

The same is true of preact. One line of JS pulls it in from pika