3 ms·
It really depends on what you're building. A content-heavy app, search/query type apps, or a basic CRM type app with CRUD workflows can easily be done largely w
by DLA 7y ago
It really depends on what you're building. A content-heavy app, search/query type apps, or a basic CRM type app with CRUD workflows can easily be done largely with server side rendering plus Intercooler for the interactive bits you need. Check out some of their examples (http://intercoolerjs.org/examples/index.html http://intercoolerjs.org/examples/index.html) and see if it meets the types of interactions you need.
If you want to go more SPA-like (and you really need that) you may want to look at Mithril (https://mithril.js.org/index.html#introduction https://mithril.js.org/index.html#introduction). This is a light way to go SPA vice React (awesome but steep learning curve; all kinds of tooling needed).
We've built things like this: Most pages are server rendered using whatever you like (We use Go with Echo framework) the same server also hosts JSON APIs that allow the interactive Intercooler or AlpineJS arts to get either HTML fragments or JSON data. You can grab JSON with Intercooler too (http://intercoolerjs.org/attributes/ic-transform-response.html http://intercoolerjs.org/attributes/ic-transform-response.ht...).
We've done search, DB apps (CRUD workflow), content sites, etc. exactly this way with a focus on developer productivity (very few libs to learn), user experience (ultra fast and SPA-like where needed), and performance (no giant JS balls to download, parse and activate).
EDIT: Just found this amazing example using MithrilJS to do very high speed updates of a bunch of data elements on a table page: https://raw.githack.com/MithrilJS/mithril.js/master/examples/dbmonster/mithril/index.html https://raw.githack.com/MithrilJS/mithril.js/master/examples...
Hope this helps you.