HACKER Q&A
📣 alnico

If not React, why not JsRender/JsViews?


A few days ago this was posted...

> If not React, then what? https://infrequently.org/2024/11/if-not-react-then-what/ https://news.ycombinator.com/item?id=42279172

I am genuinely dumbfounded why so many people do not know about JsRender/JsViews, especially when they mention that they like jQuery and would still like to keep using it. I am here to tell you, you can...

JsRender/JsViews is architecturally the most solid and complete piece of software that I've used for building basic websites to full featured spa's.

JsRender [templates, no dependencies] may be used client side or server side with Nodejs.

JsViews [observability, includes JsRender, requires jQuery] may be used with plain JSON objects/arrays (simple) or maped as full featured View Models (more complex).

Observability: set one-way or two-way data-binding on properties individually back to the JSON. Two-way binding 'automatically' maintains state (yes, it's that easy).

Converters: easily convert values, i.e. time/date for display and back to original for updating, i.e.

Components: build your own if needed.

For layout and components I use Bulma [css]; works seamless with JsRender/JsViews.

Personally I find JsRender/JsViews to be intuitive, flexible and complete; which sparks by creativity. [I'm a full stack developer]

I admit, I have researched but have never used Reactjs, Vuejs, Angular, Svelte, Solidjs, Emberjs, Nextjs and others...one look at their code/concepts/structure and it's a 'no' for me ;-)

JsRender/JsViews has complete and extensive documentation with working examples @ jsviews.com It would be nice for hear people talking about it or at least poking holes in it ;-)

If I sound like an advertisement, I am not, I am simply a passionate developer that would like to see JsViews get more attention ;-)

--- A bit of history: JsRender/JsViews is the successor to the original jQuery Templates' plugin built by Boris Moore of Microsoft and maintained by the jQuery team many years ago.

Boris built JsRender/JsViews from the ground up addressing jQuery Templates' shortcomings.


  👤 elemcontrib Accepted Answer ✓
I'm in the beginning stages of a write-up about it for an SPA. It would be useful if there were more current working examples online like the other frameworks to demonstrate how to use the library. It's a swiss army knife and the shortage of real world examples and patterns of its use in modern use cases eg. components, as an spa, etc is a real shortcoming right now. https://fj.indiewp.com/jsrender-and-jsviews-for-your-next-sp...