Re:No-build, no-NPM, SSR-first JavaScript framework if you h...
by tobyhinloopen on Tuesday March 24, 2026 @07:36AM
(#47501186)
I use Preact without reactivity. That way we can have familiar components that look like React (including strong typing, Typescript / TSX), server-side rendering and still have explicit render calls using an MVC pattern.
[ Parent
| on HN ]
Re:No-build, no-NPM, SSR-first JavaScript framework if you h...
by yde_java on Tuesday March 24, 2026 @07:43AM
(#47501240)
How and when do your components update in such an architecture?
Re:No-build, no-NPM, SSR-first JavaScript framework if you h...
by gr4vityWall on Tuesday March 24, 2026 @07:48AM
(#47501281)
From what I can tell, they just do full page reloads, and just use Preact for building UIs using components. Those components and pages then get rendered on the server as typical template engines.
Re:No-build, no-NPM, SSR-first JavaScript framework if you h...
by tobyhinloopen on Tuesday March 24, 2026 @09:05AM
(#47502005)
View triggers an event -> Controller receives event, updating the model as it sees fit -> Controller calls render to update views
Model knows nothing about controller or views, so they're independently testable. Models and views are composed of a tree of entities (model) and components (views). Controller is the glue. Also, API calls are done by the controller.
So it is more of an Entity-Boundary-Control pattern.
Re:No-build, no-NPM, SSR-first JavaScript framework if you h...
by threatofrain on Tuesday March 24, 2026 @09:14PM
(#47511918)
Could you show an example?