• lemmy_st3v3@lemmy.world
    link
    fedilink
    arrow-up
    39
    ·
    1 year ago

    Well, I have worked with two of them React and Angular. Now working with React. And the further the project goes, things just get messy, and I mean really messy. The concept of everything should be a small function is in practice not true. No dependency injection(I know you can bolt another library on top of it, but really?). The testing is a pain, it gets harder and harder to test isolated functions. Custom tags, attributes that look like the standards that are documented at MDN but are not. And most info I can find online feels like elaborate propaganda. I mean there is just nothing against React to be found, really nothing. That’s just not possible in IT.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      And most info I can find online feels like elaborate propaganda. I mean there is just nothing against React to be found, really nothing.

      It’s just Stockholm syndrome. Everybody that wants to criticize it is too traumatized to say anything, and everybody stuck with it makes a way to think it’s great.

      Add to that the fact that it is great in theory, so nobody without direct experience can criticize, and you get only positive reactions.

    • azezeB@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Thank you for the explanation, so do you think angular is better? I want to start doing front-end and I don’t know what to pick

      • naught@sh.itjust.works
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        React is awesome. Sure it has problems but what doesn’t? It’s easy to learn and JSX is great. I would try Next.js, Remix.js or just use Vite. Personally I’m trying out CT3A but that’s a bit on the edge (and uses Next). There are a lot of jobs with react out there and it’s a joy to work with imo.

        Vue is supposed to be easy but I had a hard time with the initial learning curve. The community seems much smaller too. I have heard good things about Nuxt though.

        Angular is robust but the hardest of the bunch to learn based on popular sentiment i’ve heard.

        • jana@leminal.space
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          JSX can exist without React; it’s essentially just an alternative syntax for function calls.

          (That is, annoyingly, handicapped in the Typescript checker)

          • naught@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Very true! Shouldnt be a point for react i guess. I believe they originated the syntax perhaps? Regardless, I love it (:

      • pm_me_your_quackers@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Doesn’t matter what an internet rando thinks, there are more React jobs at the moment. I’ve only seen Angular used by large enterprises for internal BI apps, which are harder jobs to get.

        • azezeB@discuss.tchncs.de
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Yeah I’m not basing a life choice on a rando, but it can help to hear his motivations. Once I have that I can draw my conclusions.

          Thanks for your input too.

          • pm_me_your_quackers@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            1 year ago

            Honestly, easiest to learn is probably React. That + market share would make me learn that first. Newer frameworks tend to base what they do with ergonomics from React. Even my favorite (at the moment) frontend library, SolidJS, has all their tutorials with references to how you do things in React, and how similar signals work with Solid. Learning Vue, Svelte, all have the same issue; they compare themselves to React to show you how they do things with their library. And it makes sense, for better-or-worse.

      • WhatAmLemmy@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Look at your local job market, where you want to work, or what you want to build to determine what to learn.

        No point learning any tech unless it aligns with the problem(s) you’re trying to solve.