Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative
by franciscop on Sunday August 19, 2018 @11:40AM
(#17794676)
Yep, exactly. I use Umbrella JS (author here!) for most side projects. I only reach for React for SPA and state-heavy projects. These cases with jQuery (or Umbrella JS) is tricky because while you can do it with template strings, you don't get the modularity, build tools and it's difficult to protect against XSS.
You have to be very, very careful with .html(...) and only for that reason sometimes React is worth it, specially with SPA. But for small-to-mid sizes projects, Umbrella JS FTW!
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative
by krishanath on Sunday August 19, 2018 @11:57AM
(#17794754)
There are tiny alternatives to React that support JSX syntax. This library is better when you want to be "closer to the metal":
https://github.com/wisercoder/uibuilder
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative
by ttty on Sunday August 19, 2018 @01:45PM
(#17795318)
It's interesting, I couldn't write jquery website anymore, even if simple, they become more complex so quickly. Add this feature...
Sidenote: Anyway in my brain jquery/templates never made sense. I always wanted components, pass some arguments and get the component, self contained.
Related: https://robots.thoughtbot.com/how-we-replaced-react-with-pho...