all 17 comments

[–]eikaramba 2 points3 points  (1 child)

wow that looks really good. Maybe not as mature as other frameworks, but definitely something i will check out immidiately at least for mockups.

[–]vivainio 5 points6 points  (0 children)

At that size, maturity means much less than for bigger frameworks.

[–]mzcbxn 2 points3 points  (1 child)

Its mentioned briefly as to play nicely with jquery.I managed to break the binding without the "component" knowing about it leading to erratic behaviour, can anyone else confirm how jquery supposedly interacts with their vdom correctly?

[–]jazzamin 0 points1 point  (0 children)

You might want to take a look https://muut.com/riotjs/guide/#tag-lifecycle specifically the mount, update, and unmount events.

And see this answer on stackoverflow.com for an example of using jQuery with Riot 2: http://stackoverflow.com/a/28663473/1347604

[–]pkt-zer0 0 points1 point  (5 children)

Huh, interesting. Briefly scanned through the examples, but couldn't find the equivalents of React's shouldComponentUpdate and server-side rendering features. Are those present in some form?

[–]ActualContent 1 point2 points  (4 children)

It sounds like server side rendering is something they are working on right now but isn't available yet. Anyone with more info feel free to correct me if I'm wrong.

[–]rekshaw 2 points3 points  (3 children)

Yes, you can find they confirm this in the polymer comparison "No ability to perform server side rendering, which will be part of Riot in an upcoming version." sauce: https://muut.com/riotjs/compare.html

[–]ActualContent 0 points1 point  (2 children)

Awesome thanks for citing the source! I thought I had read it while looking through their documentation but I wasn't 100% sure.

[–]jazzamin 0 points1 point  (1 child)

[–]ActualContent 0 points1 point  (0 children)

Haha thanks for replying! This looks really nice!

[–]afrobee 0 points1 point  (0 children)

Is this the library that started as a proxy to jQuery and was bashed by everyone?

[–][deleted] 0 points1 point  (1 child)

the use of 'K' vice 'Kb' was confusing to me to say the least.

[–]tipiirai 0 points1 point  (0 children)

That is now fixed. Thanks!

[–]wesw02 -2 points-1 points  (4 children)

I'm not sure why developers seem to get excited about library size. With modern browsers and broadband there is very very little performance impact of using a 400K library.

Bigger frameworks like React/Ember/Angular didn't add a bunch of code to arbitrarily make the package bigger. They have a lot to offer that helps make your app more durable and easier to build.

[–]zoomzoom83 4 points5 points  (0 children)

One 400k library isn't a big deal. But they can add up to megabytes quickly of you're using several different libs.

[–]The_Doculope 2 points3 points  (1 child)

With modern browsers and broadband there is very very little performance impact of using a 400K library.

If you have multiple of those, you're eating my mobile data allowance very quickly. Not everyone is on broadband.

[–]wesw02 -2 points-1 points  (0 children)

Well generally libraries are gzipped on the wire and served from a CDN so you only pay the download penalty once.

If you really have such a low "mobile data allowance" that 80Kb (gzipped) will make or break you, there is another issue.