Re:Show HN: Monkberry – a JavaScript library for building we...
by snissn on Wednesday June 29, 2016 @11:26PM
(#12006380)
What problem does reactjs solve? Why are javascript libraries used instead of generating HTML server side? I feel I'm out of touch, could someone give me a quick primer?
[ Parent
| on HN ]
Re:Show HN: Monkberry – a JavaScript library for building we...
by guptaneil on Wednesday June 29, 2016 @11:45PM
(#12006421)
The biggest advantage of client-side rendering is that clicking a link doesn't require a full-page reload. Dynamically updating small portions of a page allows for a more snappy experience, especially when on a cellular data connection.
Re:Show HN: Monkberry – a JavaScript library for building we...
by yuchi on Thursday June 30, 2016 @03:03AM
(#12007019)
Right and wrong. If that’s all you need to do search for SennaJS or PJAX. What really f/e frameworks and libraries help you build is complex interactive interfaces. If you don’t see their use then means you don’t need them.
Re:Show HN: Monkberry – a JavaScript library for building we...
by andybak on Thursday June 30, 2016 @04:50AM
(#12007329)
Yes. If people are using full MVC frameworks for the sole reason of avoiding page reloads then they really need to look at PJAX etc.
I can add PJAX to existing Django sites in about half an hour. It degrades gracefully, allows me to carry on generating my HTML on the server in a language I prefer and carries a very small cognitive overhead.
I understand TurboLinks in Rails is essentially the same concept?