… though skipping Meteor doesn’t mean I can’t use ViewModel, if I include React in the stack If I find myself opting for React, then ViewModel is included for granted.
Hi,
i’m joining this thread as I’m now trying my teeth at Meteor + Riot.
I’m still learning the ropes, and I manage to get tag files to work properly.
But I’m interested in working with imports from outside the server/client folders (i.e ‘imports’ folder), to have more modular project structure that doesn’t auto-compile files unless required. But as there are hardly any working examples of Meteor with Riot, I can’t figure out how to use Riot components with imports.
Can anyone here very kindly provide a simple example of such setup, or elaborate of the approach (I’m not using pre-processors for HTML nor for JS)?
I would be very thankful.
If your main motivation for using Riot is the fact that it allows having single file components containing HTML templates, JS scripts and CSS stylesheets all in one place, you may want to try Vue instead, for the https://atmospherejs.com/akryum/vue-app package supports just that and then it nicely integrates also with vue router and the vuex complex state manager. And you can then also potential benefit from the the Chrome dev tools extension for debugging Vue apps.
I think that at this point it is easier to find examples and helpful people working with of Vue+Meteor than with Riot+Meteor.
Thanks @Jacques for your comment.
I was taken by Riot’s tiny size, simplicity of implementation and clean syntax. But, to your point, if I can’t help myself to proficiency with it it might be better to give something more popular, like Vue, a try.
Would you know to say what are the bulletpoint differences between Riot and Vue?
Cheers!
Maybe this helps a bit https://vuejs.org/v2/guide/comparison.html#Riot
but the concept is quite similar in both frameworks
I am having some trouble integrating Riot in Meteor…
using imports everything looks correct (no errors) but the page is displayed all white… any examples/snippets in vanilla JS please?
I’ll love you forever