3 ms·
I have worked on a project that literally served static text on a page with static links, some embedded media, a bookmark toggle thing, and a hamburger menu, th
by nerdponx 5y ago
I have worked on a project that literally served static text on a page with static links, some embedded media, a bookmark toggle thing, and a hamburger menu, that were heavily using React.
The reason I was told was that they wanted the "components" framework to support modularity and reuse. Is there an alternative for that purpose?
- rtcoms 5y agoIn Ruby on Rails there is gem called ViewComponent. Create and being used by github. May be something similar should be there for other frameworks too.
- lobocinza 5y agoStatic site generators. I recommend Hugo.
- girvo 5y agoMost server-side templating systems (or static site builders that use the same or similar templating tools) allow for easy modularity and reuse, but if they really need that “SPA” type feel then htmx is a brilliant and simple choice to add behaviour without needing to adopt a fully SPA architecture https://htmx.org/ https://htmx.org/