• Kaboom@reddthat.com
    link
    fedilink
    arrow-up
    18
    arrow-down
    9
    ·
    5 months ago

    Man, thats bullshit. Any real dev wpuld know that react is the best framework

    • Restaldt@lemmy.world
      link
      fedilink
      arrow-up
      32
      ·
      5 months ago

      That’s not what the question asked tho

      Angular is definitely better for dealing with piss on your keyboard since the extra angle should help the piss roll off

      • Restaldt@lemmy.world
        link
        fedilink
        arrow-up
        15
        arrow-down
        4
        ·
        edit-2
        5 months ago

        Years and years of trying to find a better web framework when php exists

        “Oh just use axios and await async the promise to make http calls”

        Statements dreamed up by the absolutely deranged

        Just use php and curl

              • ShieldGengar@sh.itjust.works
                link
                fedilink
                arrow-up
                2
                ·
                5 months ago

                Nothing, as far as I can tell. Besides being relatively new, it seems to have basic things you need.

                So what’s wrong with axios? Asking the inverse doesn’t answer my question.

                • Victor@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  edit-2
                  5 months ago

                  Besides being relatively new, it seems to have basic things you need.

                  It’s been baseline since March of 2017.

                  I’ve never run into a case where I’ve needed to use axios in almost a decade of being a professional web developer. It’s mostly been an annoyance whenever I’ve come into contact with it, and replacing it with fetch() calls would’ve solved those issues.

                  Besides that, axios is a dependency for functionality that is already built into the web platform.

                  • ShieldGengar@sh.itjust.works
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    5 months ago

                    Unless you need to account for compat (DoD, gov’t contractors), easy cancellation (e.g. polling is necessary vs pubsub), upload progress (e.g. progress bars for large uploads), or better errors (axios throws on server errors, fetch, by default, replies OK).

                    It’s also nicer to configure - though I suppose you can just build classes for each fetch client on the frontend. Middleware - in particular, is easier in axios for advanced auth flows.

                    Native fetch is great, but saying no one uses one of the most installed (per weekly) packages on npm is just outright wrong.

                    Then again, this is a weird hill for me to die on so I’ll leave it. The confidence of your statement was just…strange. And for some reason I was compelled to comment.

            • Victor@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              5 months ago

              Do you just want to sound smart?

              lol, nice addition.

              No. There’s just rarely a legitimate reason now to use axios. It shouldn’t be the first recommendation on which to build your API fountain.

    • DrWorm@lemmy.world
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      5 months ago

      Well technically React isn’t a framework it’s just a UI library like jQuery. Nextjs would be the framework version of React. 🤓