News for hackers. Stuff that matters.
Re:Things I wish I knew about state management when I starte... by some-guy on Monday February 10, 2020 @01:49PM (#22291987)
For individuals making small sites, it's absolutely overkill.

For my job, with hundreds of developers working on a giant SPA blob with constant feature creep, frameworks like React are a necessary evil to maintain the insanity.

Re:Things I wish I knew about state management when I starte... by WilliamEdward on Monday February 10, 2020 @03:40PM (#22293026)
At what point does it stop being a small site and become a giant app? Genuinely curious cus im wondering if i should make the switch.
Re:Things I wish I knew about state management when I starte... by zys5945 on Monday February 10, 2020 @07:45PM (#22294976)
I think it's about the number of developers involved.

If you have a small team of 3-5 people who understands the architecture as a whole and can keep up with most PRs then I don't think a UI framework is necessary.

However, if you have many teams working on the same project and/or cannot keep up with every single PR merged then I think using a UI framework is a must. It forces you to stick to strict rules. Although you will start writing boilerplate code, it makes the entire application much more modular, and easier to reason about.

Re:Things I wish I knew about state management when I starte... by jf22 on Monday February 10, 2020 @08:09PM (#22295099)
With 3-5 people you end up building your own UI framework.
Re:Things I wish I knew about state management when I starte... by switch007 on Monday February 10, 2020 @03:40PM (#22293034)
React is just a library though. Surely there is much more to your story than React alone?
Re:Things I wish I knew about state management when I starte... by frenchyatwork on Monday February 10, 2020 @04:09PM (#22293379)
Sure, React is just a library, but I don't think I've ever seen it used as just a library.