Stimulus: A modest JavaScript framework for the HTML you already have
1–10 of 65 posts
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#2I've been using Stimulus + Turoblinks for my current side project and I love it. Nice and simple way to add a bit of interactivity to existing HTML on your page.
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#3Anyway, just stopping by to say that Vue has struck a good balance for me. Peppering in {{template values}} in existing HTML works really well, and when things start to get more complex I can easily break my dom out into components.
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#4I like it a lot, but I'm always afraid that I'll end up running into limitations of the framework if whatever I'm doing happens to grow in scope in a way I hadn't planned for. I tend to be bad at planning ahead for side projects, but who can blame me, they're side projects. Anyway, just stopping by to say that Vue has struck a good balance for me. Peppering in {{template values}} in existing HTML works really well, a…
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#5I like it a lot, but I'm always afraid that I'll end up running into limitations of the framework if whatever I'm doing happens to grow in scope in a way I hadn't planned for. I tend to be bad at planning ahead for side projects, but who can blame me, they're side projects. Anyway, just stopping by to say that Vue has struck a good balance for me. Peppering in {{template values}} in existing HTML works really well, a…
I love Vue as well. The problem is that I haven’t found a good way to fit Vue in with an existing Rails app without it resorting to JavaScript hell. Stimulus looks interesting because it already fits in with Turbolinks.
At the end of the day Vue-cli or create-react-app ultimately just generates static assets. Adding your statically built SPA into a Rails app should be no harder than adding jQuery. Rails should not need to know about webpack & vice versa. The key is to build components not a full fledged SPA. Pick either Rails or Vue router. If the former, Vue is just a component/view library, don't treat it like a framework.
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#6Re: Stimulus: A modest JavaScript framework for the HTML you already have
#7The manual even describes how to use just a plain inclusion, instead of the build tool of the day.
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#8As a VanilaJS advocate, I love it. The manual even describes how to use just a plain inclusion, instead of the build tool of the day.
Doing so is not a great idea, because build tools solve real and extant problems, but they're very common.
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#9I like it a lot, but I'm always afraid that I'll end up running into limitations of the framework if whatever I'm doing happens to grow in scope in a way I hadn't planned for. I tend to be bad at planning ahead for side projects, but who can blame me, they're side projects. Anyway, just stopping by to say that Vue has struck a good balance for me. Peppering in {{template values}} in existing HTML works really well, a…
Re: Stimulus: A modest JavaScript framework for the HTML you already have
#10What's the advantage or disadvantage of using this when compared to something that works with Web Components like Polymer or stencil?