Ractive supports a lot of convenience features, but some examples don't take advantage of it and ends up looking clunky.
Use on init option instead of oninit + ractive.on
Use observe init option instead of oninit + ractive.observe
Skip using new on one-off instances.
~Use shorthand object props in components, methods, etc.~ Case-to-case basis. Sometimes arrows make sense (context-less) but sometimes they do (need this).
Ractive supports a lot of convenience features, but some examples don't take advantage of it and ends up looking clunky.
on
init option instead ofoninit
+ractive.on
observe
init option instead ofoninit
+ractive.observe
new
on one-off instances.components
, methods, etc.~ Case-to-case basis. Sometimes arrows make sense (context-less) but sometimes they do (needthis
).